Esempio n. 1
0
        public void StartMoveItem(RaceItem item)
        {
            RectTransform rt = item.transform as RectTransform;

            rt.DOAnchorPosY(RaceManager.baespeed, -960).SetEase(Ease.Linear).OnComplete(() => {
                Destroy(this);
            });
        }
Esempio n. 2
0
        public RaceItem CreateImageItem(int index, int sfcno, Sprite sprite, bool iscorrect)
        {
            GameObject obj = Instantiate(itemori.gameObject, rtParent);

            obj.transform.localScale = Vector3.one;
            (obj.transform as RectTransform).anchoredPosition = arrCreatePosition[index];
            RaceItem item = obj.GetComponent <RaceItem>();

            item.SetImageTypeData(sfcno, sprite, iscorrect);
            return(item);
        }