GodDamage_______Input Player Ofline -> Online

This commit is contained in:
emDuy
2026-06-26 03:09:06 +07:00
parent 89763fda5e
commit 8dd33f0ae4
7 changed files with 297 additions and 50 deletions

View File

@@ -115890,7 +115890,7 @@ PrefabInstance:
m_SourcePrefab: {fileID: 100100000, guid: ffa7be873c1b8bb449949137ae680ba6, type: 3}
--- !u!4 &1254910863 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 4737921192513690, guid: ffa7be873c1b8bb449949137ae680ba6, type: 3}
m_CorrespondingSourceObject: {fileID: 9223372036854775806, guid: ffa7be873c1b8bb449949137ae680ba6, type: 3}
m_PrefabInstance: {fileID: 1254910862}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1255434433

View File

@@ -81,6 +81,6 @@ Material:
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _TintColor: {r: 1, g: 1, b: 1, a: 0}
- _TintColor: {r: 0, g: 0, b: 0, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1

View File

@@ -1,4 +1,4 @@
/// ---------------------------------------------
/// ---------------------------------------------
/// Ultimate Character Controller
/// Copyright (c) Opsive. All Rights Reserved.
/// https://www.opsive.com
@@ -928,6 +928,15 @@ namespace Opsive.UltimateCharacterController.Character
}
}
#if ULTIMATE_CHARACTER_CONTROLLER_MULTIPLAYER
if (m_NetworkInfo != null && !m_NetworkInfo.IsLocalPlayer()) {
m_Up = m_Transform.up;
m_MotorRotation = m_Transform.rotation;
m_Torque = Quaternion.identity;
return;
}
#endif
base.ApplyRotation();
}
@@ -989,6 +998,15 @@ namespace Opsive.UltimateCharacterController.Character
m_ActiveItemAbilities[i].ApplyPosition();
}
#if ULTIMATE_CHARACTER_CONTROLLER_MULTIPLAYER
if (m_NetworkInfo != null && !m_NetworkInfo.IsLocalPlayer()) {
m_Velocity = (m_Transform.position - m_PrevPosition) / (m_TimeScale * Time.deltaTime);
m_PrevPosition = m_Transform.position;
m_MoveDirection = Vector3.zero;
return;
}
#endif
base.ApplyPosition();
}