public virtual void Init(DungeonUnity dungeonUnity, DungeonEntity entity) { this.dungeonUnity = dungeonUnity; this.entity = entity; trans.position = dungeonUnity.GetWorldPosition(entity.Position); trans.rotation = dungeonUnity.GetWorldRotation(entity.Rotation); }
public DungeonEventHandlerEntityRotated(DungeonUnity dungeon, DungeonEventEntityRotated dungeonEvent) { entity = dungeon.GetEntityUnity(dungeonEvent.entity); rotateFrom = dungeon.GetWorldRotation(dungeonEvent.from); rotateTo = dungeon.GetWorldRotation(dungeonEvent.to); }