Pause() public method

Pause the currently playing clip. Will do nothing if the clip is currently paused.
public Pause ( ) : void
return void
Exemplo n.º 1
0
    public void TigerShock()
    {
        if (shakeTime == 8 || shakeTime == 11)
        {
            CancelInvoke("TigerShock");
            rightAni.Pause();
            leftAni.Pause();
        }

        switch (shakeTime % 3)
        {
        case 1:
            iTween.MoveTo(TigerL, iTween.Hash("Y", 7, "time", 1f));
            iTween.MoveTo(TigerR, iTween.Hash("Y", 7, "time", 1f));
            iTween.RotateTo(table, iTween.Hash("z", 8f, "time", 0.2f, "easetype", "linear"));
//			iTween.RotateTo(taizi, iTween.Hash("z", -8f, "time", 1.5f, "speed", 6f));
            break;

        case 2:
            iTween.MoveTo(TigerL, iTween.Hash("Y", 5, "time", 1f));
            iTween.MoveTo(TigerR, iTween.Hash("Y", 5, "time", 1f));
            iTween.RotateTo(table, iTween.Hash("z", 0f, "time", 0.2f, "speed", 50f, "easetype", "linear"));
//			iTween.RotateTo(taizi, iTween.Hash("z", 0f, "time", 1.5f, "speed", 6f));
            break;

        default:
            iTween.MoveTo(TigerL, iTween.Hash("Y", 7, "time", 1f));
            iTween.MoveTo(TigerR, iTween.Hash("Y", 7, "time", 1f));
            iTween.RotateTo(table, iTween.Hash("z", -8f, "time", 0.2f, "easetype", "linear"));
//			iTween.RotateTo(taizi, iTween.Hash("z", 8f, "time", 1.5f, "speed", 6f));
            break;
        }
        shakeTime++;
    }