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(); } }
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", "") + ".ydk")); TcpHelper.CtosMessage_HsReady(); } } } if (gameObjectListened.name == "duelist_") { TcpHelper.CtosMessage_HsToDuelist(); } if (gameObjectListened.name == "observer_") { TcpHelper.CtosMessage_HsToObserver(); } if (gameObjectListened.name == "start_") { if (!superScrollView.Selected()) { return; } TcpHelper.CtosMessage_HsStart(); } }
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()) { ColorRed("ready_");//未准备 TcpHelper.CtosMessage_HsNotReady(); } else { ColorGreen("ready_");//已准备 TcpHelper.CtosMessage_UpdateDeck(new YGOSharp.Deck(DECK_PATH + 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(); } }