public override CCObject copyWithZone(CCZone zone) { CCZone tmpZone = zone; CCJumpTo ret = null; if (tmpZone != null && tmpZone.m_pCopyObject != null) { ret = tmpZone.m_pCopyObject as CCJumpTo; if (ret == null) { return(null); } } else { ret = new CCJumpTo(); tmpZone = new CCZone(ret); } base.copyWithZone(tmpZone); ret.initWithDuration(Duration, m_delta, m_height, m_nJumps); return(ret); }
public static CCJumpTo actionWithDuration(float duration, CCPoint position, float height, uint jumps) { CCJumpTo ret = new CCJumpTo(); ret.initWithDuration(duration, position, height, jumps); return ret; }
public override CCObject copyWithZone(CCZone zone) { CCZone tmpZone = zone; CCJumpTo ret = null; if (tmpZone != null && tmpZone.m_pCopyObject != null) { ret = tmpZone.m_pCopyObject as CCJumpTo; if (ret == null) { return null; } } else { ret = new CCJumpTo(); tmpZone = new CCZone(ret); } base.copyWithZone(tmpZone); ret.initWithDuration(Duration, m_delta, m_height, m_nJumps); return ret; }
public static new CCJumpTo actionWithDuration(float duration, CCPoint position, float height, uint jumps) { CCJumpTo cCJumpTo = new CCJumpTo(); cCJumpTo.initWithDuration(duration, position, height, jumps); return(cCJumpTo); }
public static CCJumpTo actionWithDuration(float duration, CCPoint position, float height, uint jumps) { CCJumpTo ret = new CCJumpTo(); ret.initWithDuration(duration, position, height, jumps); return(ret); }
public override CCObject copyWithZone(CCZone zone) { CCZone cCZone = zone; CCJumpTo cCJumpTo = null; if (cCZone == null || cCZone.m_pCopyObject == null) { cCJumpTo = new CCJumpTo(); cCZone = new CCZone(cCJumpTo); } else { cCJumpTo = cCZone.m_pCopyObject as CCJumpTo; if (cCJumpTo == null) { return(null); } } base.copyWithZone(cCZone); cCJumpTo.initWithDuration(this.m_fDuration, this.m_delta, this.m_height, this.m_nJumps); return(cCJumpTo); }
public override void OnEnter() { base.OnEnter(); centerSprites(3); var actionTo = new CCJumpTo (2, new CCPoint(300, 300), 50, 4); var actionBy = new CCJumpBy (2, new CCPoint(300, 0), 50, 4); var actionUp = new CCJumpBy (2, new CCPoint(0, 0), 80, 4); var actionByBack = actionBy.Reverse(); m_tamara.RunAction(actionTo); m_grossini.RunAction(CCSequence.FromActions(actionBy, actionByBack)); m_kathia.RunAction(new CCRepeatForever (actionUp)); }