Пример #1
0
 void Start()
 {
     _totem = FindObjectOfType<TotemController>();
     _totem.onVictory += delegate
     {
         AudioController.instance.PlayVictory();
         Destroy(this.gameObject);
     };
 }
Пример #2
0
 void Start()
 {
     ATimer.WaitSeconds(0.25f, delegate
     {
         _totem = FindObjectOfType<TotemController>();
         _totem.onVictory += delegate
         {
             Destroy(this.gameObject);
         };
         _playerTransform = GameObject.Find("Player(Clone)").transform;
         if (_playerTransform != null) _canFollow = true;
     });
 }
Пример #3
0
 private void Start()
 {
     _controller = GetComponentInParent <TotemController>();
 }