Exemplo n.º 1
0
 protected virtual void Awake()
 {
     if (isSingletonObject)
     {
         UnitySingleton <T> ._Awake(this as T);
     }
 }
Exemplo n.º 2
0
    protected virtual void Awake() // should be called in derived class
    {
        if (isSingletonObject)
        {
            UnitySingleton <T> ._Awake(this as T);

            //Debug.Log( "Awake: " + this.GetType().Name );
        }
    }
Exemplo n.º 3
0
    protected virtual void Awake() // should be called in derived class
    {
        if (isSingletonObject)
        {
#if UNITY_FLASH
            UnitySingleton <T> ._Awake(this);
#else
            UnitySingleton <T> ._Awake(this as T);
#endif
            //Debug.Log( "Awake: " + this.GetType().Name );
        }
    }
Exemplo n.º 4
0
    protected virtual void Awake() // should be called in derived class
    {
        UnitySingleton <T> ._Awake((T)this);

        //Debug.Log( "Awake: " + this.GetType().Name );
    }