public void OnMouseDown() { Destroy(gameObject); ManageScript = GameObject.Find("Player").GetComponent <InvetoryManager>(); ManageScript.logCollected = true; }
// Use this for initialization void Start() { startPos = GetComponent <RectTransform>().localPosition; rect = GetComponent <RectTransform>(); txt = GameObject.Find("Description").GetComponent <Text>(); inventory = GameObject.Find("Inventory"); activeArea = inventory.GetComponent <RectTransform>(); invManager = GameObject.Find("LevelManager").GetComponent <InvetoryManager>(); }