using SHADE; using System; public class RaccoonSpin : Script { [SerializeField] [Tooltip("Speed of the rotation in radians per second.")] private double RotateSpeed = 1.0; private double rotation = 0.0; [SerializeField] private CallbackEvent testEvent; [SerializeField] private CallbackEvent testEvent3 = new CallbackEvent(); private Transform Transform; public RaccoonSpin(GameObject gameObj) : base(gameObj) { } protected override void awake() { Transform = GetComponent(); if (Transform == null) { Debug.LogError("Transform is NULL!"); } } protected override void update() { rotation += RotateSpeed * 0.16; Transform.LocalRotation = new Vector3(0.0f, rotation, 0.0f); } }