Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ MonoBehaviour:
InLocalSpace: 0
Interpolate: 1
SlerpPosition: 0
PropertiesVisible: 1
m_Rigidbody: {fileID: 4745766379562620470}
m_PlayerInput: {fileID: 4903152183366241606}
m_AvatarInputs: {fileID: 8197190117666738524}
Expand Down Expand Up @@ -382,15 +381,15 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5478015027486214707}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7e9f71718dd134b14b300e378e98c718, type: 3}
m_Name:
m_EditorClassIdentifier:
move: {x: 0, y: 0}
look: {x: 0, y: 0}
jump: 0
sprint: 0
analogMovement: 0
cursorLocked: 1
cursorInputForLook: 1
Move: {x: 0, y: 0}
Look: {x: 0, y: 0}
Jump: 0
Sprint: 0
AnalogMovement: 0
CursorLocked: 1
CursorInputForLook: 1
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using com.unity.multiplayer.samples.distributed_authority.gameplay;
using Unity.Multiplayer.Samples.SocialHub.Player;
using UnityEditor;
using UnityEditor.UIElements;
using UnityEngine;
using UnityEngine.UIElements;

namespace com.unity.multiplayer.samples.distributed_authority.editor
namespace Unity.Multiplayer.Samples.SocialHub.Editor
{
[CustomEditor(typeof(AvatarTransform))]
class DerivedComponentEditor : Editor
class DerivedComponentEditor : UnityEditor.Editor
{
public override VisualElement CreateInspectorGUI()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Unity.Multiplayer.Samples.SocialHub.Editor",
"rootNamespace": "Unity.Multiplayer.Samples.SocialHub",
"references": [
"GUID:8314b31eee3cc495ca4a4f078575802d"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Unity.Multiplayer.Samples.SocialHub.Gameplay",
"rootNamespace": "Unity.Multiplayer.Samples.SocialHub",
"references": [
"GUID:1491147abca9d7d4bb7105af628b223e"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Unity.Multiplayer.Samples.SocialHub.Player")]

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System.Runtime.CompilerServices;
using UnityEngine;
using UnityEngine.InputSystem;

namespace com.unity.multiplayer.samples.distributed_authority.input
namespace Unity.Multiplayer.Samples.SocialHub.Input
{
class AvatarInputs : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Unity.Multiplayer.Samples.SocialHub.Input",
"rootNamespace": "Unity.Multiplayer.Samples.SocialHub",
"references": [
"GUID:75469ad4d38634e559750d17036d5f7c"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Unity.Netcode.Components;
using UnityEngine;
using Unity.Multiplayer.Samples.SocialHub.Input;
using UnityEngine.InputSystem;
using com.unity.multiplayer.samples.distributed_authority.input;

namespace com.unity.multiplayer.samples.distributed_authority.gameplay
namespace Unity.Multiplayer.Samples.SocialHub.Player
{
[RequireComponent(typeof(Rigidbody))]
public class AvatarTransform : NetworkTransform
Expand Down Expand Up @@ -53,6 +53,7 @@ public override void OnNetworkSpawn()
}

m_PlayerInput.enabled = true;
m_AvatarInputs.enabled = true;
m_Rigidbody.isKinematic = false;

// Freeze rotation on the x and z axes to prevent toppling
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Unity.Multiplayer.Samples.SocialHub.Player",
"rootNamespace": "Unity.Multiplayer.Samples.SocialHub",
"references": [
"GUID:1491147abca9d7d4bb7105af628b223e",
"GUID:c15e7f658578345fcb824b0a64d4dbe8",
"GUID:9ff2150ce7d7c415a8af1fbff3dc3e6c",
"GUID:75469ad4d38634e559750d17036d5f7c"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.