diff --git a/Runtime/HumanoidFree/Scripts/Networking/HumanoidPlayer.cs b/Runtime/HumanoidFree/Scripts/Networking/HumanoidPlayer.cs index feb0956..c96673d 100644 --- a/Runtime/HumanoidFree/Scripts/Networking/HumanoidPlayer.cs +++ b/Runtime/HumanoidFree/Scripts/Networking/HumanoidPlayer.cs @@ -73,8 +73,8 @@ namespace Passer.Humanoid { DebugLog("Send Instantiate Humanoid " + humanoid.humanoidId); HumanoidNetworking.InstantiateHumanoid instantiateHumanoid = new HumanoidNetworking.InstantiateHumanoid(humanoid); - if (createLocalRemotes) - this.Receive(instantiateHumanoid); + if (createLocalRemotes) + this.Receive(instantiateHumanoid); } public void DestroyHumanoid(HumanoidControl humanoid) { } public void UpdateHumanoidPose(HumanoidControl humanoid) { } @@ -142,6 +142,13 @@ namespace Passer.Humanoid { } } +#endif + [SerializeField] + protected HumanoidNetworking.DebugLevel _debug = HumanoidNetworking.DebugLevel.Error; + public HumanoidNetworking.DebugLevel debug { + get { return _debug; } + } + static HumanoidPlayer mInstance; public static HumanoidPlayer instance { get { @@ -153,16 +160,6 @@ namespace Passer.Humanoid { return mInstance; } } - //public static void StartStaticCoroutine(IEnumerator coroutineMethod) { - // StartCoroutine(coroutineMethod); - //} - -#endif - [SerializeField] - protected HumanoidNetworking.DebugLevel _debug = HumanoidNetworking.DebugLevel.Error; - public HumanoidNetworking.DebugLevel debug { - get { return _debug; } - } }