Exemplo n.º 1
0
    public void OnMouseDown()
    {
        Destroy(gameObject);

        ManageScript = GameObject.Find("Player").GetComponent <InvetoryManager>();

        ManageScript.logCollected = true;
    }
Exemplo n.º 2
0
 // 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>();
 }