コード例 #1
0
    public static void SendEndStatic(long targetID)
    {
        BattleAction_EndStatic battleAction_EndStatic = new BattleAction_EndStatic();

        battleAction_EndStatic.soldierId = targetID;
        EventDispatcher.BroadcastAsync <BattleAction_EndStatic, bool>(BattleActionEvent.EndStatic, battleAction_EndStatic, false);
    }
コード例 #2
0
 public void EndStatic(BattleAction_EndStatic data, bool isServerData)
 {
     if (data.soldierId != this.owner.ID)
     {
         return;
     }
     this.owner.IsStatic = false;
 }