Esempio n. 1
0
 private void OnMouseUp()
 {
     if (GlassTarget != null)
     {
         GlassTarget.Apply(Color);
         GlassTarget.Apply(FluidType);
     }
 }
Esempio n. 2
0
 private void OnMouseUp()
 {
     if (GlassTarget != null)
     {
         GlassTarget.Apply(Verb);
     }
 }
Esempio n. 3
0
    void OnMouseDown()
    {
        if (isStirButton)
        {
            Debug.Log("Button is stirring it up.");
            parent.gameObject.SetActive(false);
        }
        else if (isShakeButton)
        {
            Debug.Log("Button is Shaking it up!");
            parent.gameObject.SetActive(false);
        }
        else if (isIgniteButton)
        {
            Debug.Log("Button is igniting it up!");
            parent.gameObject.SetActive(false);
        }
        else if (isSquishButton)
        {
            Debug.Log("Button is squish it up!");
            parent.gameObject.SetActive(false);
        }

        else if (isClose)
        {
            this.gameObject.SetActive(false);
        }
        else
        {
            Debug.Log("Somethings up with the action buttons! ACK!");
        }

        Glass.Apply(Verb);
    }
Esempio n. 4
0
 private void OnMouseUp()
 {
     if (GlassTarget != null)
     {
         var newGarnishBit = Instantiate(GarnishPrefab);
         newGarnishBit.GetComponent <SpriteRenderer>().color = transform.GetChild(0).GetComponent <SpriteRenderer>().color;
         GlassTarget.Apply(GarnishType, newGarnishBit);
     }
 }