void Start() { _totem = FindObjectOfType<TotemController>(); _totem.onVictory += delegate { AudioController.instance.PlayVictory(); Destroy(this.gameObject); }; }
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; }); }
private void Start() { _controller = GetComponentInParent <TotemController>(); }