Esempio n. 1
0
    public void CmdPlatformServerExec(PlatformCommand cmd, string arg)
    {
        NetController ctrl = FindObjectOfType <NetController>();

        if (cmd == PlatformCommand.ContentStarted)
        {
            RpcGameAlreadyStart();
            if (ctrl)
            {
                ctrl.GameAlreadyStarted();
            }
        }
        else if (cmd == PlatformCommand.ContentStoped)
        {
            RpcGameAlreadyStop();
            if (ctrl)
            {
                ctrl.GameAlreadyStoped();
            }
        }
    }