Esempio n. 1
0
 public override void Enter()
 {
     Papuan.Animator.SetFloat("walkSpeed", 0);
     if (Papuan.TargetSlote != null)
     {
         Papuan.RotateTo(-Papuan.TargetSlote.transform.forward);
     }
 }
Esempio n. 2
0
 public override void Enter()
 {
     if (Papuan.LastDamageSource != null)
     {
         Papuan.SetTargetEnemy(Papuan.LastDamageSource);
         Papuan.LastDamageSource = null;
         Papuan.RotateTo(Papuan.LastDamageSource.transform.position - Papuan.transform.position);
     }
 }
Esempio n. 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;
    }
Esempio n. 4
0
 public override void Update()
 {
     Papuan.RotateTo(Papuan.TargetEnemy.transform.position - Papuan.transform.position);
 }