cull(engine-cleanup): pass-8 phase-2 cascade round 1 after GachaUI stub
This commit is contained in:
@@ -46,64 +46,4 @@ public class NotificatonAnimation : MonoBehaviour
|
||||
_labelInitialPos = _labels[0].transform.localPosition;
|
||||
_root.SetActive(value: false);
|
||||
}
|
||||
|
||||
public IEnumerator Exec(List<Param> paramList)
|
||||
{
|
||||
if (paramList.Count <= 0)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
_root.SetActive(value: true);
|
||||
_root.transform.localPosition = _rootInitialPos + Vector3.up * 100f;
|
||||
for (int i = 0; i < _labels.Length; i++)
|
||||
{
|
||||
_labels[i].transform.localPosition = _labelInitialPos + Vector3.right * 2000f;
|
||||
}
|
||||
iTween.MoveTo(_root, iTween.Hash("position", _rootInitialPos, "time", 1f, "islocal", true, "easetype", iTween.EaseType.easeInOutExpo));
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
int labelIndex = 0;
|
||||
int i2 = 0;
|
||||
while (i2 < paramList.Count)
|
||||
{
|
||||
Param param = paramList[i2];
|
||||
UILabel usingLabel = _labels[labelIndex];
|
||||
usingLabel.text = param._text;
|
||||
usingLabel.transform.localPosition = _labelInitialPos + Vector3.right * 2000f;
|
||||
iTween.MoveTo(usingLabel.gameObject, iTween.Hash("position", _labelInitialPos, "time", 0.5f, "islocal", true, "easetype", iTween.EaseType.easeOutExpo));
|
||||
float seconds = 0f;
|
||||
switch (param._type)
|
||||
{
|
||||
case Param.Type.Result:
|
||||
seconds = 1.4f;
|
||||
break;
|
||||
case Param.Type.MaintenanceOnHome:
|
||||
seconds = 4f;
|
||||
break;
|
||||
case Param.Type.MaintenanceOnResult:
|
||||
seconds = 4f;
|
||||
break;
|
||||
case Param.Type.GatheringMatching:
|
||||
seconds = 2f;
|
||||
break;
|
||||
case Param.Type.GachaResult:
|
||||
seconds = 1.4f;
|
||||
break;
|
||||
case Param.Type.TemporaryDeckResult:
|
||||
seconds = 1.4f;
|
||||
break;
|
||||
case Param.Type.MissionCleared:
|
||||
seconds = 1.4f;
|
||||
break;
|
||||
}
|
||||
yield return new WaitForSeconds(seconds);
|
||||
iTween.MoveTo(usingLabel.gameObject, iTween.Hash("position", _labelInitialPos + Vector3.left * 2000f, "time", 0.5f, "islocal", true, "easetype", iTween.EaseType.easeInExpo));
|
||||
yield return new WaitForSeconds(0.3f);
|
||||
int num = labelIndex + 1;
|
||||
labelIndex = num % _labels.Length;
|
||||
num = i2 + 1;
|
||||
i2 = num;
|
||||
}
|
||||
iTween.MoveTo(_root, iTween.Hash("position", _rootInitialPos + Vector3.up * 100f, "time", 1f, "islocal", true, "easetype", iTween.EaseType.easeInOutExpo));
|
||||
yield return new WaitForSeconds(1f);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user