1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-21 09:46:04 +08:00
2020-01-17 00:11:15 +09:00

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);
}
}