Beispiel #1
0
    public ActionInterval OnClick7()
    {
        var action = CCActionSequence.Create(
            CCAction.CCDelay(0, () => { Reset(); SetTile("重复测试:移动重复3次"); }),
            image.transform.CCMoveTo(duration * 0.7f, new Vector3(200, 100, 0)),
            image.transform.CCMoveTo(duration * 0.7f, new Vector3(0, 0, 0)),
            CCActionDelay.Create(0f)
            );

        return(CCAction.CCRepeat(action, 3));
    }
Beispiel #2
0
    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));
    }
Beispiel #3
0
    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));
    }