Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        GameObject item_script = GameObject.Find("CanvasUID");

        sc = item_script.GetComponent <UIDController> ();
        //	the_item.icon = icon;
        //	the_item.itemName = item_name;
        //	the_item.itemCount = number;
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        current_state = 0;
        GameObject item_script = GameObject.Find("CanvasUID");

        sc = item_script.GetComponent <UIDController>();
        //if(item_script1 = GameObject.Find (NeededItem)){Debug.Log("succ");}
        //Item mission_require_sc = item_script1.GetComponent<Item> ();
        //mission_require_sc = item_script1.GetComponent<Item> ();
        //mission_require=mission_require_sc.the_item;
    }