コード例 #1
0
 private void Awake()
 {
     player       = GameObject.FindWithTag(Tags.player).transform;
     env          = GameObject.FindWithTag(Tags.gameController).GetComponent <EnvGenerate>();
     way          = GetComponentInChildren <WayPoints>();
     currentIndex = way.points.Length - 2;
 }
コード例 #2
0
 void Start()
 {
     env      = GameObject.FindWithTag(Tags.gameController).GetComponent <EnvGenerate>();
     prisoner = GameObject.Find("Prisoner").transform;
 }