//public int thisNum;


    // Start is called before the first frame update
    void Start()
    {
        network = GameObject.Find("Network").GetComponent <Network>();
        uiCTR   = GameObject.Find("UICTR").GetComponent <UICTR>();

        isLogin = true;
        playingCTR.SetActive(false);
        uiCTR.endGameCTR.SetActive(false);

        isPlaying   = false;
        isGameSetUp = false;
        isWinner    = false;
    }
Beispiel #2
0
    void Start()
    {
        socket = GetComponent <SocketIOComponent>();
        uiCTR  = GameObject.Find("UICTR").GetComponent <UICTR>();

        socket.On("Connect To Server", OnConnected);
        socket.On("Other Player Connected", OtherConnected);

        socket.On("I Login", OnLogIn);

        socket.On("getValue", BackAnswer);
        socket.On("SomeOneGuess", OtherGuess);

        socket.On("show", ShowRound);

        socket.On("I Am Winner", IWin);
        socket.On("I Lose", ILose);
    }