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.
20 lines
649 B
20 lines
649 B
using System; |
|
using UnityEngine; |
|
|
|
namespace ET |
|
{ |
|
public class ChangePosition_SyncGameObjectPos: AEventClass<EventType.ChangePosition> |
|
{ |
|
protected override void Run(object changePosition) |
|
{ |
|
EventType.ChangePosition args = changePosition as EventType.ChangePosition;; |
|
GameObjectComponent gameObjectComponent = args.Unit.GetComponent<GameObjectComponent>(); |
|
if (gameObjectComponent == null) |
|
{ |
|
return; |
|
} |
|
Transform transform = gameObjectComponent.GameObject.transform; |
|
// transform.position = args.Unit.Position; |
|
} |
|
} |
|
} |