Beispiel #1
0
        public static CCTintTo actionWithDuration(float duration, byte red, byte green, byte blue)
        {
            CCTintTo cCTintTo = new CCTintTo();

            cCTintTo.initWithDuration(duration, red, green, blue);
            return(cCTintTo);
        }
Beispiel #2
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone   cCZone   = zone;
            CCTintTo cCTintTo = null;

            if (cCZone == null || cCZone.m_pCopyObject == null)
            {
                cCTintTo = new CCTintTo();
                cCZone   = new CCZone(cCTintTo);
            }
            else
            {
                cCTintTo = cCZone.m_pCopyObject as CCTintTo;
                if (cCTintTo == null)
                {
                    return(null);
                }
            }
            base.copyWithZone(cCZone);
            cCTintTo.initWithDuration(this.m_fDuration, this.m_to.r, this.m_to.g, this.m_to.b);
            return(cCTintTo);
        }
Beispiel #3
0
        public override void OnEnter()
        {
            base.OnEnter();

            centerSprites(2);

            var action1 = new CCTintTo (2, 255, 0, 255);
            var action2 = new CCTintBy (2, -127, -255, -127);
            var action2Back = action2.Reverse();

            m_tamara.RunAction(action1);
            m_kathia.RunAction(CCSequence.FromActions(action2, action2Back));
        }