mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix(Extensions): Added SetPositionAndRotation
This commit is contained in:
parent
dfd69f79dd
commit
a89d4ccc5d
@ -108,6 +108,12 @@ public static void GetPositionAndRotation(this Transform transform, out Vector3
|
|||||||
position = transform.position;
|
position = transform.position;
|
||||||
rotation = transform.rotation;
|
rotation = transform.rotation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void SetPositionAndRotation(this Transform transform, Vector3 position, Quaternion rotation)
|
||||||
|
{
|
||||||
|
transform.position = position;
|
||||||
|
transform.rotation = rotation;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// IPEndPoint address only to pretty string.
|
// IPEndPoint address only to pretty string.
|
||||||
|
Loading…
Reference in New Issue
Block a user