public void TriggerActionPoint(ActionPointType actionPointType, CombatAction action) { //if (Conditions.ContainsKey(actionPointType) && Conditions[actionPointType].Listeners.Count > 0) //{ // for (int i = Conditions[actionPointType].Listeners.Count - 1; i >= 0; i--) // { // var item = Conditions[actionPointType].Listeners[i]; // item.Invoke(action); // } //} }
public void TriggerActionPoint(ActionPointType actionPointType, CombatAction action) { if (ActionPoints.ContainsKey(actionPointType) && ActionPoints[actionPointType].Listeners.Count > 0) { for (int i = ActionPoints[actionPointType].Listeners.Count - 1; i >= 0; i--) { var item = ActionPoints[actionPointType].Listeners[i]; item.Invoke(action); } } }
public void TriggerActionPoint(ActionPointType actionPointType, CombatAction action) { GetComponent <ActionPointManageComponent>().TriggerActionPoint(actionPointType, action); }
public void ReceiveCure(CombatAction combatAction) { var cureAction = combatAction as CureAction; CurrentHealth.Add(cureAction.CureValue); }
public void ReceiveDamage(CombatAction combatAction) { var damageAction = combatAction as DamageAction; CurrentHealth.Minus(damageAction.DamageValue); }
private void WhenReceiveDamage(CombatAction combatAction) { //Log.Debug($"{GetType().Name}->WhenReceiveDamage"); NoDamageTimer.Reset(); }
public void TriggerActionPoint(ActionPointType actionPointType, CombatAction action) { ActionPointManager.TriggerActionPoint(actionPointType, action); }
public void CallAction(CombatActionType actionType, CombatAction action) { ActionTrigger.CallAction(actionType, action); }
public void CallAction(CombatActionType actionType, CombatAction action) { CombatActions[actionType]?.Invoke(action); }