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)); }