// Use this for initialization void OnGUI() { if (GUI.Button(new Rect(10, 15, 130, 65), "String", button_style)) { IDE ide = (GameObject.Find("IDE").GetComponent("IDE") as IDE); ide.SetInput(input); ide.show(gameObject); } }
public override void DroppedOnInventory(Vector3 mousePosition) { on_drag = false; SetHidden(false); if ((Time.time - time_started) < 0.5f) { if (isEmpty()) { return; } IDEInput input = getIDEInput(); IDE ide = (GameObject.Find("IDE").GetComponent("IDE") as IDE); ide.SetInput(input); ide.show(GameObject.Find("Inventory")); } }