public void WatchMovie()
 {
     _dimmer.Dim(5);
     _dvdPlayer.On();
     _dvdPlayer.Insert(_dvd);
     _dvdPlayer.Play();
 }
Ejemplo n.º 2
0
    private IEnumerator DoDragonStuff(int?amount)
    {
        DragonIsWorking = true;

        var value = amount ?? Amount;

        // Flap
        Debug.Log("\tFlap Wings");
        AudioControl.Instance.PlaySound("flap");
        yield return(new WaitForSeconds(FlapWaitTime));

        //Shadow
        Debug.Log("\tShadow");
        AudioControl.Instance.PlaySound("flyover");
        Dimmer.SmoothTime = DimmerTimeValue;
        Dimmer.Dim();
        yield return(new WaitForSeconds(FlyOverWaitTime));

        //Screenshake
        Debug.Log("\tScreen Shake");
        CameraShake.Instance.Shake(ShakeDuration);
        yield return(new WaitForSeconds(ShakeWaitDuration));

        //Drop
        Debug.Log("\tDrop Loot");
        AudioControl.Instance.PlaySound("coins");
        LootDropper.Instance.Drop(value);

        //Show Icon
        DragonsPersonality.Instance.ShowDragonText();

        DragonIsWorking = false;
    }