SHADE_Y3/Assets/Scripts/FixRotation.cs

20 lines
270 B
C#
Raw Normal View History

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