void Awake() { HaveLife = GetComponent <IHaveLife>(); HaveLife.OnDied += Explode; ProjectilePrefab = GetComponent <IShoot>() != null?GetComponent <IShoot>().ProjectilePrefab : null; }
void Awake() { animator = transform.GetChild(0).gameObject.GetComponent <Animator>(); HitTrigger = GetComponent <IHaveLife>(); HitTrigger.OnGotHit += GotHit; hitTimer = 0f; gotHit = false; }
void Awake() { HaveLife = GetComponent <IHaveLife>(); if (HaveLife != null) { HaveLife.OnDied += Die; } }
void Awake() { HaveLife = GetComponent <IHaveLife>(); HaveLife.OnDied += Die; }
void Awake() { HaveLife = GetComponent <IHaveLife>(); HaveLife.OnDied += Die; virusM = Resources.Load <GameObject>("Prefab/virusM"); }
public void Assign() { //comment pra dar um commit fingindo que estou trabalhando hehehehe HaveLife = GetComponent <IHaveLife>(); HaveLife.OnDied += GameObject.Find("GameBtns").GetComponent <GameBtns>().OnEnemyDie; }