public InteractionSkill(AInteraction p_interaction, ASkill p_skill)
     : base("[Interaction] " + p_skill.Name, p_skill?.Owner, 0f)
 {
     _interaction = p_interaction;
     _interaction.OnInteractionDone      += OnInteractionDone;
     _interaction.OnInteractionCancelled += OnInteractionCancelled;
     _skill = p_skill;
 }
예제 #2
0
 public void EndInteraction()
 {
     if (_interaction != null)
     {
         _interaction.End();
         _interaction = null;
     }
 }
예제 #3
0
 public void CancelInteraction()
 {
     if (_interaction != null)
     {
         _interaction.Cancel();
         _interaction = null;
     }
 }
예제 #4
0
 public void EndInteraction()
 {
     if (_interaction != null)
     {
         _interaction.OnInteractionDone?.Invoke();
         _interaction.End();
         _interaction = null;
     }
 }
예제 #5
0
 public void CancelInteraction()
 {
     if (_interaction != null)
     {
         _interaction.OnInteractionCancelled?.Invoke();
         _interaction.Cancel();
         _interaction = null;
     }
 }
예제 #6
0
 public void SetInteraction(AInteraction interaction)
 {
     CancelInteraction();
     _interaction = interaction;
 }