예제 #1
0
    //----------------------------------------------------------------------------------------------------------------
    // update Session, refresh connection and view

    private void updateSession()
    {
        //       Debug.Log("updateSession...");
        ctunity.gamePaused = true;          // turn off CTstates recording while clear world
        StartCoroutine("getInventoryList"); // get list of "World" prefabs

        ctunity.clearWorlds();              // clean slate all worlds

        ctunity.setReplay(false);           // !live
        ctunity.CTdebug(null);              // clear debug msg
        ctunity.newSession = true;
        ctunity.gamePaused = false;         // start updating world (set at completion of async getWorldState)

//        myCamera.setTarget(null);               // reset cam target to default
    }