public static void SendSuperArmor(long targetID) { BattleAction_SuperArmor battleAction_SuperArmor = new BattleAction_SuperArmor(); battleAction_SuperArmor.soldierId = targetID; EventDispatcher.BroadcastAsync <BattleAction_SuperArmor, bool>(BattleActionEvent.SuperArmor, battleAction_SuperArmor, false); }
public void SuperArmor(BattleAction_SuperArmor data, bool isServerData) { if (data.soldierId != this.owner.ID) { return; } this.owner.IsEndure = true; }