public static void Move(GameObject go, Quaternion rot, emotitron.Network.NST.DebugXform istype, emotitron.Network.NST.DebugXform iftype) { if (istype != iftype) { return; } go.transform.rotation = rot; }
public static void Move(GameObject go, Vector3 pos, emotitron.Network.NST.DebugXform istype, emotitron.Network.NST.DebugXform iftype) { if (istype != iftype) { return; } go.transform.position = pos; }
public static void Move(GameObject srcGO, Vector3 pos, Quaternion rot, emotitron.Network.NST.DebugXform istype, emotitron.Network.NST.DebugXform iftype, bool moveThis = true) { if (!moveThis) { return; } if (istype != iftype) { return; } GameObject debugGO; if (crosses.TryGetValue(srcGO, out debugGO)) { debugGO.transform.position = pos; debugGO.transform.rotation = rot; } }