예제 #1
0
        public void HandleBlocked()
        {
            audioSource.PlayOneShot(ResourceManager.singleton.GetAudio("shield_impact").audio_clip);
            anim.Play("attack_interrupt");
            anim.SetFloat("interruptSpeed", 1.2f);
            player.characterStats._stamina -= 40;
            Vector3 targetDir = transform.position - player.transform.position;

            player.SnapToRotation(targetDir);
            CloseDamageCollider();
        }
예제 #2
0
 void PickupItem()
 {
     uiManager.OpenInteractCard(UIActionType.pickup);
     if (a_input)
     {
         Vector3 targetDir = states.pickManager.itemCandidate.transform.position - transform.position;
         states.SnapToRotation(targetDir);
         states.pickManager.PickCandidate(states);
         states.PlayAnimation("pick_up");
         a_input = false;
     }
 }