public void StartMoveItem(RaceItem item) { RectTransform rt = item.transform as RectTransform; rt.DOAnchorPosY(RaceManager.baespeed, -960).SetEase(Ease.Linear).OnComplete(() => { Destroy(this); }); }
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); }