コード例 #1
0
    public SCClient(SCClientCommunicator communicator, bool createServer)
    {
        localServer = null;
        this.communicator = communicator;
        addCommandBehaviours();

        if(createServer){
            localServer = new SCServer(this, SCCommunicator.numberOfPlayers);
        }else{
            localServer = null;
        }
        mFirstTime = true;
    }
コード例 #2
0
    void Start()
    {
        mTable = transform.FindChild("PRTable").GetComponent<SCTable>();
        mClient = GameObject.Find("PRClient").GetComponent<SCClientCommunicator>();

        currentWindow = WINDOW_NOTHING;
        currentScreen = SCREEN_MAIN_MENU;
    }