Skip to content

Commit

Permalink
[Net Players] Remove Net DebugUI ; fix empty raycast result
Browse files Browse the repository at this point in the history
  • Loading branch information
kipash committed Sep 18, 2023
1 parent ec8a940 commit feea231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 105 deletions.
103 changes: 0 additions & 103 deletions package/Runtime/Networking/Networking Player.unity
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ Transform:
- {fileID: 869501961}
- {fileID: 930688385}
- {fileID: 2016998137}
- {fileID: 1105934721}
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
Expand Down Expand Up @@ -583,11 +582,6 @@ MeshFilter:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 930688384}
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
--- !u!224 &1105934721 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
m_PrefabInstance: {fileID: 1857120976361476142}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1791489691
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -826,100 +820,3 @@ MonoBehaviour:
onPlayerSpawned:
m_PersistentCalls:
m_Calls: []
--- !u!1001 &1857120976361476142
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 619865973}
m_Modifications:
- target: {fileID: 1857120975290165678, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_Name
value: RoomUI
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_Pivot.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_Pivot.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_RootOrder
value: 4
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1857120975290165679, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: b63cd8cc3c1b46349bf2980f50bdbedc, type: 3}
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export class SampleNetworkedPlayer extends Behaviour {
const currPointerPos = input.getPointerPosition(0) || new Vector2();
if(currPointerPos.distanceTo(this.pointerPos) < 40 || reactOnHover) {
const result = physics.raycast();
if(result) {
this.currentGoal = result.point;
if(result && result.collider) {
this.currentGoal.copy(result.point);
}
}
}
Expand Down

0 comments on commit feea231

Please sign in to comment.