コード例 #1
0
    private Color color;        //the name text's color of items for upgrade

    // Use this for initialization
    void Start()
    {
        bag        = GameObject.Find("Bag").GetComponent <Bag>();
        up         = GameObject.Find("EquipUP").GetComponent <Up>();
        database   = GameObject.Find("itemdb").GetComponent <itemdb>();
        introduce  = GameObject.Find("Introduce");
        equipup    = GameObject.Find("EquipUP");
        isdelete   = GameObject.Find("isdelete");
        UpPosition = GameObject.Find("UpPosition");
        itemlist   = bag.equiplist;
        itemlist1  = bag.potionlist;
        itemlist2  = bag.materiallist;
        equiplist  = GameObject.FindGameObjectWithTag("Player").GetComponent <person>().equiplist;
        color      = Color.white;
    }