Exemplo n.º 1
0
        /** creates an action with duration and opacity */
        public static CCFadeTo actionWithDuration(float duration, byte opacity)
        {
            CCFadeTo pFadeTo = new CCFadeTo();

            pFadeTo.initWithDuration(duration, opacity);

            return(pFadeTo);
        }
Exemplo n.º 2
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone   pNewZone = null;
            CCFadeTo pCopy    = null;

            if (pZone != null && pZone.m_pCopyObject != null)
            {
                //in case of being called at sub class
                pCopy = (CCFadeTo)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCFadeTo();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);

            pCopy.initWithDuration(m_fDuration, m_toOpacity);

            return(pCopy);
        }