Ejemplo n.º 1
0
 public override void OnEnter()
 {
     base.OnEnter();
     if (m_pStencil != null)
     {
         m_pStencil.OnEnter();
     }
 }
Ejemplo 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();
            }
        }
Ejemplo 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();
            }
        }