xiubug
This commit is contained in:
parent
3fb9cc481c
commit
382c51f242
@ -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;
|
||||
|
||||
|
||||
|
||||
|
@ -123,7 +123,7 @@ public class minerControl : MonoBehaviour
|
||||
}
|
||||
|
||||
//ΈΔ±δ³―Ος
|
||||
ChangeShipLook(pathPoints[0], pathPoints[path.Count - 1]);
|
||||
ChangeShipLook(this.transform.position, pathPoints[path.Count - 1]);
|
||||
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user