Пример #1
0
 public override void FindPlayer(MovableBehaviour player)
 {
     if (target != player) {
         target = player;
         _sfx.Explosion(1);
     }
 }
Пример #2
0
    public override void FindPlayer(MovableBehaviour player)
    {
        if (target == player) return;

        getTimetoShootAgain();
        watchTarget = StartCoroutine(StopAndShoot());

        target = player;
    }
Пример #3
0
 public virtual void OnDistanceWithPlayer(MovableBehaviour player, float distance)
 {
     if (renderer != null) {
         if (player.Level == Level && (distance <= rangeAtack)) {
             FindPlayer(player);
         } else
             LostPlayer(player);
     }
 }
Пример #4
0
 public override void LostPlayer(MovableBehaviour player)
 {
 }
Пример #5
0
 public override void LostPlayer(MovableBehaviour player)
 {
     if (target == player)
         OnLostPlayer = true;
 }
Пример #6
0
 public virtual void LostPlayer(MovableBehaviour player)
 {
     if (target == player) target = null;
 }
Пример #7
0
 public virtual void FindPlayer(MovableBehaviour player)
 {
     if (target != player) { target = player; }
 }
Пример #8
0
 public void Start()
 {
     impulseForce = Vector3.zero;
     impulseTween = null;
     target = null;
 }