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();
    }
Exemplo n.º 2
0
 public void DecreaseByOne()
 {
     root.DecreaseByOne();
 }
Exemplo n.º 3
0
        public void notifyMe()
        {
            Debug.Log("TutorialState: notifyMe");

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

            holder2.DecreaseByOne();
        }