Esempio n. 1
0
 void Start()
 {
     currentState = State.Chasing;
     agent = GetComponent<NavMeshAgent>();
     player = GameObjectList.GetAlivePlayer();
     StartCoroutine(UpdatePath());
 }
Esempio n. 2
0
 void ActivateTeleporter()
 {
     if (!player) player = GameObjectList.GetAlivePlayer();
     active = true;
     waves.Play();
 }
Esempio n. 3
0
 void Start()
 {
     GameManager.OnGameOver += OnGameOver;
     player = GameObjectList.GetAlivePlayer();
     railgun = FindObjectOfType<Railgun>();
 }
Esempio n. 4
0
 void Start()
 {
     player = GetComponentInParent<Player>();
     gunSoundSource = GetComponent<AudioSource>();
 }