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