Ejemplo n.º 1
0
    public void HandleSceneAwake(SceneController_Base controller)
    {
        if (currentScene_ != controller.Scene())
        {
            previousScene_ = currentScene_;
        }
        currentScene_ = controller.Scene();
#if UNITY_EDITOR
        if (DEBUG_SCENES)
        {
            Debug.Log("SceneManager: HandleSceneAwake( " + currentScene_ + " ), previously " + previousScene_);
        }
#endif
    }
Ejemplo n.º 2
0
    void Awake()
    {
        current_ = this;
        PostAwake( );

        if (!SqliteUtils.IsInitialised( ))
        {
            if (SqliteUtils.DEBUG_SQL)
            {
                Debug.Log("No SqliteUtils in " + this.GetType( ).ToString( ));
            }
            SqliteUtils.Instance.databaseLoadComplete += OnDatabasesLoaded;
            SqliteUtils.Instance.initialiseDatabases("English");
        }
        else
        {
            OnDatabasesLoaded( );
        }
    }
Ejemplo n.º 3
0
    void Awake()
    {
        current_ = this;
        PostAwake( );

        /*
         * if (!SqliteUtils.IsInitialised( ))
         * {
         *      if (SqliteUtils.DEBUG_SQL)
         *      {
         *              Debug.Log( "No SqliteUtils in " + this.GetType( ).ToString( ) );
         *      }
         *      SqliteUtils.Instance.databaseLoadComplete += OnDatabasesLoaded;
         *      SqliteUtils.Instance.initialiseDatabases( "English" );
         * }
         * else
         * {
         *      OnDatabasesLoaded( );
         * }*/
    }