Exemple #1
0
    public void Show(GameObject parent, BaseAppParams paras)
    {
        DebugLog.AddEntry("show app " + GetName());

        caller     = paras.caller;
        stats      = new Stats();
        instanceID = Globals.GetNewAppInstanceID();

        panel.SetActive(true);
        panel.transform.localPosition = parent.transform.localPosition;

        if (!didLoad)
        {
            HandleLoad();
            didLoad = true;
        }

        HandleShow();
    }
Exemple #2
0
    private void ShowApp(BaseApp app)
    {
        if (currentApp != null)
        {
            Globals.FatalError("already showing an app");
        }

        currentApp = app;

        var paras = new BaseAppParams();

        paras.caller = caller;
        app.Show(gameboardPanel, paras);

        // send a handshake action so we know the client is ready
        if (Globals.isPatient)
        {
            DebugLog.AddEntry("handshake with therapist for appID " + currentApp.appID);
            SendMessage(new SystemMessage(currentApp.appID, AppActions.HandShake), false);
        }
    }