using SHADE; using System; public class RaccoonSpin : Script { [SerializeField] [Tooltip("Speed of the rotation in radians per second.")] private float RotateSpeed = 1.0f; private float rotation = 0.0f; [SerializeField] private CallbackEvent testEvent; [SerializeField] private CallbackEvent testEvent3 = new CallbackEvent(); private Transform Transform; public RaccoonSpin(GameObject gameObj) : base(gameObj) { } protected override void awake() { testEvent = new CallbackEvent(); Action action = (x) => Debug.Log($"{x}"); testEvent.RegisterAction(action); Transform = GetComponent(); if (Transform == null) { Debug.LogError("Transform is NULL!"); } } }