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(); }
public void notifyMe() { Debug.Log("TutorialState: notifyMe"); holder2.DecreaseByOne(); }
public void notifyMe() { Debug.Log("EventSelector: notifyMe"); holder2.DecreaseByOne(); }