This commit is contained in:
Caiyanpeng committed 2022-04-15 17:13:34 +08:00
1 parent 41240b1398
commit 2f9dd43e07
4 files changed
+2239 -2040

No files matched your search

@@ -423,8 +423,10 @@ public class RowerMultiModeScript : MonoBehaviour
g.transform.SetParent(listc);
g.SetActive(true);
g.transform.localScale = Vector3.one;
g.transform.localPosition = new Vector3(0, -21.5f - 47f * i);
traceList.Add(new Trace { userId = data.UserId, trace = g.transform.Find("T1") });
}
listc.GetComponent<RectTransform>().sizeDelta = new Vector2(550f, 43 + 47 * (list.Count - 1));
listc.DOLocalMoveY(47 * sindex + 115.5f, 0.8f);
return;
}
@@ -441,10 +443,10 @@ public class RowerMultiModeScript : MonoBehaviour
if (diff.diff != 0)
{
//if (diff.diff > 0)
//{
// t.parent.SetAsLastSibling();
//}
if (diff.diff > 0)
{
t.parent.SetAsLastSibling();
}
sq.Join(t.parent.DOLocalMoveY(-47 * (diff.rank - 1) - 21.5f, 0.9f));
var sq1 = DOTween.Sequence();
sq1.Append(t.GetComponent<CanvasGroup>().DOFade(0.2f, 0.45f));
@@ -454,7 +456,7 @@ public class RowerMultiModeScript : MonoBehaviour
sq.SetEase(Ease.InOutCubic);
//sq.Append(t.GetComponent)
}
t.parent.name = i.ToString();
//t.parent.name = i.ToString();
}
//for (i = 0; i < list.Count; i++)
//{