mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 17:26:03 +08:00
16 lines
329 B
C#
16 lines
329 B
C#
using DG.Tweening;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using System.Collections;
|
|
|
|
public class Temp : BrainBase
|
|
{
|
|
public RotateMode rotMode;
|
|
public Transform target;
|
|
|
|
IEnumerator Start()
|
|
{
|
|
yield return new WaitForSeconds(0.6f);
|
|
target.DORotate(new Vector3(0,0,20f), 3f, rotMode).SetRelative();
|
|
}
|
|
} |