Beispiel #1
0
 void Update()
 {
     if (Input.GetButtonDown("Select"))
     {
         currentScriptLine.Stop();
     }
 }
Beispiel #2
0
    private void StopCurrentState()
    {
        if (currentPawnState == null)
        {
            return;
        }
        if (currentPawnState.invincibleDuringState)
        {
            SetInvincible(false);
        }
        if (currentStateCoroutine != null)
        {
            currentStateCoroutine.Stop();
            if (currentStateStartCoroutine != null)
            {
                StopCoroutine(currentStateStartCoroutine);
            }
        }

        if (currentStateCoroutine != null)
        {
            currentStateStopCoroutine.StartCoroutine();
        }
        currentPawnState = null;
    }
Beispiel #3
0
 private void stopCurrentCutsceneLine()
 {
     if (currentDialogLine != null)
     {
         currentDialogLine.Stop();
     }
     //Audio.stopAudio(false);
 }
    public override void Stop()
    {
        // MDebug.Log("STOP PAN");
        if (PanRoutine != null)
        {
            PanRoutine.Stop();
        }

        Callback();
        Active = false;
    }