public ActionInterval OnClick8() { var action1 = CCActionSequence.Create( CCAction.CCDelay(0, () => { Reset(); SetTile("并行测试:移动缩放"); }), image.transform.CCMoveTo(duration, new Vector3(200, 100, 0)), image.transform.CCMoveTo(duration, new Vector3(0, 0, 0)), CCActionDelay.Create(0f) ); var action2 = CCActionSequence.Create( image.transform.CCScaleTo(duration, new Vector3(2, 2, 2)), image.transform.CCScaleTo(duration, new Vector3(1, 1, 1)), CCActionDelay.Create(0f) ); var action = CCActionSpawn.Create(action1, action2); return(action); }
public ActionInterval OnClick20() { var action1 = CCAction.CCSequence( CCAction.CCDelay(0, () => { Reset(); SetTile("图一浮动、图二震动"); }), image2.gameObject.CCShow(), CCAction.CCSineEaseIn(image.transform.CCMoveTo(duration * 0.5f, new Vector3(0, 100, 0))), CCAction.CCSineEaseOut(image.transform.CCMoveTo(duration * 0.5f, new Vector3(0, 0, 0))), CCActionDelay.Create(0f) ); var action2 = CCAction.CCSequence( image2.transform.CCShake(duration, new Vector3(20, 20, 0)), image2.transform.CCMoveTo(0, new Vector3(0, -100, 0)), CCActionDelay.Create(0f) ); var action = CCActionSpawn.Create(action1, action2); return(CCAction.CCRepeat(action, 3)); }
public ActionInterval OnClick19() { var action1 = CCAction.CCSequence( CCAction.CCDelay(0, () => { Reset(); SetTile("获得奖励效果"); }), image.transform.CCMoveTo(0, new Vector3(0, 200, 0)), image.transform.CCMoveTo(duration * 0.3f, new Vector3(0, 0, 0)), CCActionDelay.Create(0f) ); var action2 = CCAction.CCSequence( image.transform.CCScaleTo(0, new Vector3(3, 3, 3)), image.transform.CCScaleTo(duration * 0.3f, new Vector3(0.5f, 0.5f, 0.5f)), image.transform.CCScaleTo(duration * 0.2f, new Vector3(1.3f, 1.3f, 1.3f)), image.transform.CCScaleTo(duration * 0.15f, new Vector3(1, 1, 1)), CCActionDelay.Create(0.2f), CCActionDelay.Create(0f) ); var action = CCActionSpawn.Create(action1, action2); return(CCAction.CCRepeat(action, 3)); }