Esempio n. 1
0
 public override void OnEnterTransitionDidFinish()
 {
     base.OnEnterTransitionDidFinish();
     if (m_pStencil != null)
     {
         m_pStencil.OnEnterTransitionDidFinish();
     }
 }
Esempio n. 2
0
        public virtual void AddChild(CCNode child, int zOrder, int tag)
        {
            Debug.Assert(child != null, "Argument must be non-null");
            Debug.Assert(child.m_pParent == null, "child already added. It can't be added again");

            if (m_pChildren == null)
            {
                m_pChildren = new RawList <CCNode>();
            }

            InsertChild(child, zOrder);

            child.m_nTag            = tag;
            child.Parent            = this;
            child.m_nOrderOfArrival = s_globalOrderOfArrival++;

            if (m_bIsRunning)
            {
                child.OnEnter();
                child.OnEnterTransitionDidFinish();
            }
        }
Esempio n. 3
0
        public virtual void AddChild(CCNode child, int zOrder, int tag)
        {
            Debug.Assert(child != null, "Argument must be non-null");
            Debug.Assert(child.m_pParent == null, "child already added. It can't be added again");
            Debug.Assert(child != this, "Can not add myself to myself.");

            if (m_pChildren == null)
            {
                m_pChildren = new CCRawList<CCNode>();
            }

            InsertChild(child, zOrder);

            child.m_nTag = tag;
            child.Parent = this;
            child.m_nOrderOfArrival = s_globalOrderOfArrival++;

            if (m_bIsRunning)
            {
                child.OnEnter();
                child.OnEnterTransitionDidFinish();
            }
        }