You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
640 B
19 lines
640 B
using UnityEngine; |
|
|
|
namespace ET |
|
{ |
|
public class ChangeRotation_SyncGameObjectRotation: AEventClass<EventType.ChangeRotation> |
|
{ |
|
protected override void Run(object changeRotation) |
|
{ |
|
EventType.ChangeRotation args = changeRotation as EventType.ChangeRotation; |
|
GameObjectComponent gameObjectComponent = args.Unit.GetComponent<GameObjectComponent>(); |
|
if (gameObjectComponent == null) |
|
{ |
|
return; |
|
} |
|
Transform transform = gameObjectComponent.GameObject.transform; |
|
// transform.rotation = args.Unit.Rotation; |
|
} |
|
} |
|
}
|
|
|