public void UpdateThing(int thingId, PosFace newPosFace) { var transform = GetThingTransform(thingId); if (transform != null) { transform.position = GameConvert.Vector3From(newPosFace); transform.rotation = GameConvert.QuaternionFrom(newPosFace.Facing); } }
Transform Instantiate(Transform transform, PosFace posFace) { return(Instantiate(transform, GameConvert.Vector3From(posFace), GameConvert.QuaternionFrom(posFace.Facing))); }