This commit is contained in:
wulongxiao 2025-01-06 17:13:12 +08:00
parent 05dff9a793
commit 3fa45fb3b4
2 changed files with 6 additions and 4 deletions

View File

@ -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;

View File

@ -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);