Esempio n. 1
0
    IEnumerator OnClickCoroutine(GameObject btn_mice)   //Single Click
    {
        yield return(new WaitForSeconds(delayBetween2Clicks));

        if (Time.time - _lastClickTime < delayBetween2Clicks)
        {
            yield break;
        }

        _bLoadedActor = LoadActor(btn_mice, _actorParent.transform, actorScale);
        _btnClick     = btn_mice;

        LoadProperty loadProerty = new LoadProperty();

        loadProerty.LoadMiceProperty(btn_mice.transform.GetChild(0).gameObject, infoGroupsArea[1], 0);

        //Debug.Log(btn_mice.transform.GetChild(0).name);
        //Debug.Log("Simple click");
    }
Esempio n. 2
0
    public void OnItemClick(GameObject obj)
    {
        int itemType = int.Parse(obj.GetComponent <Item>().storeInfo[(int)StoreProperty.ItemType]);

        _lastItem = obj;

        buyingGoodsData[0] = obj.GetComponent <Item>().storeInfo[(int)StoreProperty.ItemID];
        buyingGoodsData[1] = obj.GetComponent <Item>().storeInfo[(int)StoreProperty.ItemName];
        buyingGoodsData[2] = obj.GetComponent <Item>().storeInfo[(int)StoreProperty.ItemType];

        LoadProperty loadProperty = new LoadProperty();

        loadProperty.LoadMiceProperty(obj, infoGroupsArea[4].transform.GetChild(0).gameObject, 0);
        loadProperty.LoadPrice(obj, infoGroupsArea[4].transform.GetChild(0).gameObject, itemType);

        _bLoadedActor = LoadActor(obj, infoGroupsArea[4].transform.GetChild(0).GetChild(0), actorScale);   // 錯誤 暫時道具沒有動畫物件

        infoGroupsArea[4].SetActive(true);
        EventMaskSwitch.Switch(infoGroupsArea[4]);
    }