Ejemplo n.º 1
0
    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);
        }
    }
Ejemplo n.º 2
0
 Transform Instantiate(Transform transform, PosFace posFace)
 {
     return(Instantiate(transform, GameConvert.Vector3From(posFace), GameConvert.QuaternionFrom(posFace.Facing)));
 }