using UnityEngine; namespace ET { public class ChangeRotation_SyncGameObjectRotation: AEventClass { protected override void Run(object changeRotation) { EventType.ChangeRotation args = changeRotation as EventType.ChangeRotation; GameObjectComponent gameObjectComponent = args.Unit.GetComponent(); if (gameObjectComponent == null) { return; } Transform transform = gameObjectComponent.GameObject.transform; // transform.rotation = args.Unit.Rotation; } } }