Example #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
    }
    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( );
        }
    }
    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( );
         * }*/
    }