mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-21 01:36:05 +08:00
21 lines
582 B
C#
21 lines
582 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using DG.Tweening;
|
|
|
|
public class BlendableTweens_Rotation : BrainBase
|
|
{
|
|
public Transform targetRotate, targetLocalRotate;
|
|
|
|
public void BlendableRotateX()
|
|
{
|
|
targetRotate.DOBlendableRotateBy(new Vector3(10, 0, 0), 1);
|
|
targetLocalRotate.DOBlendableLocalRotateBy(new Vector3(10, 0, 0), 1);
|
|
}
|
|
|
|
public void BlendableRotateY()
|
|
{
|
|
targetRotate.DOBlendableRotateBy(new Vector3(0, 10, 0), 1);
|
|
targetLocalRotate.DOBlendableLocalRotateBy(new Vector3(0, 10, 0), 1);
|
|
}
|
|
} |