SHADE_Y3/Assets/Scripts/FixRotation.cs

20 lines
270 B
C#
Raw Normal View History

2023-03-02 16:26:49 +08:00
using System;
using SHADE;
public class FixRotation : Script
{
Transform tran;
protected override void awake()
{
tran = GetComponent<Transform>();
}
protected override void update()
{
if(tran)
tran.LocalEulerAngles = Vector3.Zero;
}
}