예제 #1
0
 // Token: 0x06000538 RID: 1336 RVA: 0x000318C8 File Offset: 0x0002FAC8
 protected virtual void Awake()
 {
     NGUITools.CheckForPrefabStage(base.gameObject);
     this.mStarted = false;
     this.mGo      = base.gameObject;
     this.mTrans   = base.transform;
 }
예제 #2
0
    /// <summary>
    /// Reset 'mStarted' as Unity remembers its value. It can't be marked as [NonSerialized] because then
    /// Unity edit mode stops working properly and code recompile causes widgets to disappear.
    /// </summary>

    protected virtual void Awake()
    {
#if UNITY_2018_3_OR_NEWER
        NGUITools.CheckForPrefabStage(gameObject);
#endif

        mStarted = false;
        mGo      = gameObject;
        mTrans   = transform;
    }