コード例 #1
0
 void Start()
 {
     pourSim                    = GetComponentInChildren <PourSimulator>();
     requestedBaseType          = Ingredients.BaseType.NO_BASE;
     requestedMixerType         = Ingredients.MixerType.NO_MIXER;
     requestedAlcoholPercentage = -1f;
 }
コード例 #2
0
ファイル: Glass.cs プロジェクト: mkim1994/BarPrototype
    IEnumerator DepleteDrink(float delay)
    {
        yield return(new WaitForSeconds(delay));

        PourSimulator pourSimulator = GetComponentInChildren <PourSimulator>();

        pourSimulator.Empty();

        FindObjectOfType <AudioController>().gulp.Play();
    }
コード例 #3
0
ファイル: Glass.cs プロジェクト: mkim1994/BarPrototype
    public void ShrinkLiquid()
    {
        PourSimulator liquid = GetComponentInChildren <PourSimulator>();

        liquid.Empty();
    }