Exemple #1
0
 public override void Enter()
 {
     Papuan.Animator.SetFloat("walkSpeed", 0);
     if (Papuan.TargetSlote != null)
     {
         Papuan.RotateTo(-Papuan.TargetSlote.transform.forward);
     }
 }
 public override void Enter()
 {
     if (Papuan.LastDamageSource != null)
     {
         Papuan.SetTargetEnemy(Papuan.LastDamageSource);
         Papuan.LastDamageSource = null;
         Papuan.RotateTo(Papuan.LastDamageSource.transform.position - Papuan.transform.position);
     }
 }
Exemple #3
0
    public override void Enter()
    {
        Papuan.Animator.SetTrigger("attack");
        if (Papuan.TargetEnemy != null)
        {
            Papuan.RotateTo(Papuan.TargetEnemy.transform.position - Papuan.transform.position);
        }

        _attacked   = false;
        _timePassed = 0;
    }
Exemple #4
0
 public override void Update()
 {
     Papuan.RotateTo(Papuan.TargetEnemy.transform.position - Papuan.transform.position);
 }