xiubug
This commit is contained in:
parent
05dff9a793
commit
3fa45fb3b4
@ -138,8 +138,8 @@ public class BaoshiRoomcontroller : MonoBehaviour
|
||||
fishMan = GameObject.Instantiate(fishManPrefab, this.transform);
|
||||
fishManlist.Add(fishMan);
|
||||
|
||||
Vector3 pos = new Vector3(Random.Range((endPos.position.x - startPos.position.x) / 2, endPos.position.x), endPos.position.y, endPos.position.z);
|
||||
fishMan.transform.position = pos;
|
||||
//Vector3 pos = new Vector3(Random.Range((endPos.position.x - startPos.position.x) / 2, endPos.position.x), endPos.position.y, endPos.position.z);
|
||||
fishMan.transform.position = endPos.position;
|
||||
|
||||
|
||||
|
||||
|
@ -130,8 +130,10 @@ public class roomcontroller : MonoBehaviour
|
||||
fishMan = GameObject.Instantiate(fishManPrefab, this.transform);
|
||||
fishManlist.Add(fishMan);
|
||||
|
||||
Vector3 pos = new Vector3(Random.Range((endPos.position.x-startPos.position.x)/2, endPos.position.x), endPos.position.y, endPos.position.z);
|
||||
fishMan.transform.position = pos;
|
||||
/*Vector3 pos = new Vector3(Random.Range((endPos.position.x-startPos.position.x)/2, endPos.position.x), endPos.position.y, endPos.position.z);
|
||||
fishMan.transform.position = pos;*/
|
||||
|
||||
fishMan.transform.position = endPos.position;
|
||||
|
||||
fishManShipContorl = fishMan.GetComponent<minerControl>();
|
||||
fishManShipContorl.init(this.paths, this.pathsNeedTimer, this.fishingNeedTimer, this.restTimer, this.startPos, this.endPos);
|
||||
|
Loading…
Reference in New Issue
Block a user