本文整理汇总了C#中Cocos2D.CCSequence.Reverse方法的典型用法代码示例。如果您正苦于以下问题:C# CCSequence.Reverse方法的具体用法?C# CCSequence.Reverse怎么用?C# CCSequence.Reverse使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cocos2D.CCSequence
的用法示例。
在下文中一共展示了CCSequence.Reverse方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnEnter
public override void OnEnter()
{
base.OnEnter();
alignSpritesLeft(2);
// Test:
// Sequence should work both with IntervalAction and InstantActions
var move1 = new CCMoveBy (1, new CCPoint(250, 0));
var move2 = new CCMoveBy (1, new CCPoint(0, 50));
var tog1 = new CCToggleVisibility();
var tog2 = new CCToggleVisibility();
var seq = new CCSequence(move1, tog1, move2, tog2, move1.Reverse());
var action = new CCRepeat ((new CCSequence(seq, seq.Reverse())), 3);
// Test:
// Also test that the reverse of Hide is Show, and vice-versa
m_kathia.RunAction(action);
var move_tamara = new CCMoveBy (1, new CCPoint(100, 0));
var move_tamara2 = new CCMoveBy (1, new CCPoint(50, 0));
var hide = new CCHide();
var seq_tamara = new CCSequence(move_tamara, hide, move_tamara2);
var seq_back = seq_tamara.Reverse();
m_tamara.RunAction(new CCSequence(seq_tamara, seq_back));
}