public override void DestroyObject()
    {
        gameObject.transform.parent = null;

        if (mIsSubscribedToRoot && mRoot != null)
        {
            mRoot.DecreaseByOne();
            mRoot = null;
            mIsSubscribedToRoot = false;
        }

        //if (child != null)
        //    child.DecreaseByOne();



        //child = null;

        base.DestroyObject();
    }
 public void DecreaseByOne()
 {
     root.DecreaseByOne();
 }
Esempio n. 3
0
        public void notifyMe()
        {
            Debug.Log("TutorialState: notifyMe");

            holder2.DecreaseByOne();
        }
Esempio n. 4
0
        public void notifyMe()
        {
            Debug.Log("EventSelector: notifyMe");

            holder2.DecreaseByOne();
        }