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; }
public void EndInteraction() { if (_interaction != null) { _interaction.End(); _interaction = null; } }
public void CancelInteraction() { if (_interaction != null) { _interaction.Cancel(); _interaction = null; } }
public void EndInteraction() { if (_interaction != null) { _interaction.OnInteractionDone?.Invoke(); _interaction.End(); _interaction = null; } }
public void CancelInteraction() { if (_interaction != null) { _interaction.OnInteractionCancelled?.Invoke(); _interaction.Cancel(); _interaction = null; } }
public void SetInteraction(AInteraction interaction) { CancelInteraction(); _interaction = interaction; }