33 lines
549 B
C#
33 lines
549 B
C#
using DG.Tweening;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class ForceDrive_1 : MonoBehaviour
|
|
{
|
|
public ProcessUISwitch targetProcessUI;
|
|
|
|
private void Awake()
|
|
{
|
|
|
|
|
|
targetProcessUI.actions.Add(() =>
|
|
{
|
|
transform.DOLocalRotate(new Vector3(0, 90, -90), 7);
|
|
|
|
});
|
|
}
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|