コード例 #1
0
 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);
     //    }
     //}
 }
コード例 #2
0
 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);
         }
     }
 }
コード例 #3
0
 public void TriggerActionPoint(ActionPointType actionPointType, CombatAction action)
 {
     GetComponent <ActionPointManageComponent>().TriggerActionPoint(actionPointType, action);
 }
コード例 #4
0
        public void ReceiveCure(CombatAction combatAction)
        {
            var cureAction = combatAction as CureAction;

            CurrentHealth.Add(cureAction.CureValue);
        }
コード例 #5
0
        public void ReceiveDamage(CombatAction combatAction)
        {
            var damageAction = combatAction as DamageAction;

            CurrentHealth.Minus(damageAction.DamageValue);
        }
コード例 #6
0
 private void WhenReceiveDamage(CombatAction combatAction)
 {
     //Log.Debug($"{GetType().Name}->WhenReceiveDamage");
     NoDamageTimer.Reset();
 }
コード例 #7
0
ファイル: CombatEntity.cs プロジェクト: x00568/EGamePlay
 public void TriggerActionPoint(ActionPointType actionPointType, CombatAction action)
 {
     ActionPointManager.TriggerActionPoint(actionPointType, action);
 }
コード例 #8
0
ファイル: CombatEntity.cs プロジェクト: yzx4036/EGamePlay
 public void CallAction(CombatActionType actionType, CombatAction action)
 {
     ActionTrigger.CallAction(actionType, action);
 }
コード例 #9
0
 public void CallAction(CombatActionType actionType, CombatAction action)
 {
     CombatActions[actionType]?.Invoke(action);
 }