public virtual void OnMouseUp(GameObject go) { if (go.tag == "text") { stanzaManager.OnMouseUp(go.GetComponent <TinkerText>()); } }
public virtual void OnMouseUp(GameObject go) { if (go.tag == "text") { if (stanzaManager == null) { stanzaManager = GameObject.Find("StanzaManager").GetComponent <StanzaManager>(); } if (stanzaManager != null) { stanzaManager.OnMouseUp(go.GetComponent <TinkerText>()); } } }