This commit is contained in:
wulongxiao 2025-01-06 17:38:22 +08:00
parent 3fb9cc481c
commit 382c51f242
3 changed files with 6 additions and 6 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 = endPos.position;
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;

View File

@ -123,7 +123,7 @@ public class minerControl : MonoBehaviour
}
//ΈΔ±δ³―Ος
ChangeShipLook(pathPoints[0], pathPoints[path.Count - 1]);
ChangeShipLook(this.transform.position, pathPoints[path.Count - 1]);

View File

@ -130,10 +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;
//fishMan.transform.position = endPos.position;
fishManShipContorl = fishMan.GetComponent<minerControl>();
fishManShipContorl.init(this.paths, this.pathsNeedTimer, this.fishingNeedTimer, this.restTimer, this.startPos, this.endPos);