private void OnMouseUp() { if (GlassTarget != null) { GlassTarget.Apply(Color); GlassTarget.Apply(FluidType); } }
private void OnMouseUp() { if (GlassTarget != null) { GlassTarget.Apply(Verb); } }
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); }
private void OnMouseUp() { if (GlassTarget != null) { var newGarnishBit = Instantiate(GarnishPrefab); newGarnishBit.GetComponent <SpriteRenderer>().color = transform.GetChild(0).GetComponent <SpriteRenderer>().color; GlassTarget.Apply(GarnishType, newGarnishBit); } }