mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 01:06:02 +08:00
29 lines
718 B
C#
29 lines
718 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Reflection;
|
|
using DG.Tweening;
|
|
using DG.Tweening.Core;
|
|
using DG.Tweening.Plugins.Options;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
using UnityEngine.UI;
|
|
|
|
public class TempTests : BrainBase
|
|
{
|
|
public Transform target;
|
|
|
|
IEnumerator Start()
|
|
{
|
|
yield return new WaitForSeconds(0.8f);
|
|
|
|
Sequence s = DOTween.Sequence();
|
|
// s.Append(target.DOMoveX(2, 1));
|
|
s.AppendCallback(() => {
|
|
Debug.Log("Gonna pause here");
|
|
s.Pause();
|
|
})
|
|
.AppendCallback(() => Debug.Log("Will move Y"))
|
|
.Append(target.DOMoveY(2, 1));
|
|
}
|
|
} |