Пример #1
0
 void listenerForClicked(GameObject gameObjectListened)
 {
     if (gameObjectListened.name == "exit_")
     {
         Program.I().ocgcore.onExit();
     }
     if (gameObjectListened.name == "ready_")
     {
         if (selftype < realPlayers.Length && realPlayers[selftype] != null)
         {
             if (realPlayers[selftype].getIfPreped())
             {
                 TcpHelper.CtosMessage_HsNotReady();
             }
             else
             {
                 TcpHelper.CtosMessage_UpdateDeck(new YGOSharp.Deck("deck/" + Config.Get("deckInUse", "wizard") + ".ydk"));
                 TcpHelper.CtosMessage_HsReady();
             }
         }
     }
     if (gameObjectListened.name == "duelist_")
     {
         TcpHelper.CtosMessage_HsToDuelist();
     }
     if (gameObjectListened.name == "observer_")
     {
         TcpHelper.CtosMessage_HsToObserver();
     }
     if (gameObjectListened.name == "start_")
     {
         TcpHelper.CtosMessage_HsStart();
     }
 }
Пример #2
0
 void listenerForClicked(GameObject gameObjectListened)
 {
     if (gameObjectListened.name == "exit_")
     {
         Program.I().ocgcore.onExit();
     }
     if (gameObjectListened.name == "duelist_")
     {
         TcpHelper.CtosMessage_HsToDuelist();
     }
     if (gameObjectListened.name == "observer_")
     {
         TcpHelper.CtosMessage_HsToObserver();
     }
     if (gameObjectListened.name == "start_")
     {
         TcpHelper.CtosMessage_HsStart();
     }
 }