public override void FindPlayer(MovableBehaviour player) { if (target != player) { target = player; _sfx.Explosion(1); } }
public override void FindPlayer(MovableBehaviour player) { if (target == player) return; getTimetoShootAgain(); watchTarget = StartCoroutine(StopAndShoot()); target = player; }
public virtual void OnDistanceWithPlayer(MovableBehaviour player, float distance) { if (renderer != null) { if (player.Level == Level && (distance <= rangeAtack)) { FindPlayer(player); } else LostPlayer(player); } }
public override void LostPlayer(MovableBehaviour player) { }
public override void LostPlayer(MovableBehaviour player) { if (target == player) OnLostPlayer = true; }
public virtual void LostPlayer(MovableBehaviour player) { if (target == player) target = null; }
public virtual void FindPlayer(MovableBehaviour player) { if (target != player) { target = player; } }
public void Start() { impulseForce = Vector3.zero; impulseTween = null; target = null; }