asd
This commit is contained in:
@@ -6,10 +6,9 @@ public sealed partial class Dedugan
|
||||
{
|
||||
if ( Network.IsOwner )
|
||||
{
|
||||
// IsDancing = Input.Down( "Dance" );
|
||||
IsDancing = Input.Down( "Dance" );
|
||||
}
|
||||
|
||||
Log.Info(IsDancing);
|
||||
Renderer.Set( "test_dance", IsDancing );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@ public sealed class RagdollController : Component
|
||||
[Group("Setup"), Order(-100), Property] public ModelPhysics bodyPhysics { get; set; }
|
||||
[Group("Setup"), Order(-100), Property] public SkinnedModelRenderer bodyRenderer { get; set; }
|
||||
[Group("Config"), Order(0), Property] public bool isLocked { get; set; }
|
||||
|
||||
// [Property] public Collider Collider;
|
||||
|
||||
[Sync]
|
||||
public new bool Enabled
|
||||
@@ -14,6 +16,7 @@ public sealed class RagdollController : Component
|
||||
bodyPhysics.Enabled = value;
|
||||
bodyPhysics.MotionEnabled = value;
|
||||
bodyRenderer.UseAnimGraph = !value;
|
||||
// Collider.Enabled = !value;
|
||||
|
||||
if ( !value )
|
||||
{
|
||||
@@ -23,6 +26,13 @@ public sealed class RagdollController : Component
|
||||
}
|
||||
}
|
||||
|
||||
// protected override void OnStart()
|
||||
// {
|
||||
// Collider = GetComponent<Collider>();
|
||||
//
|
||||
// Log.Info(Collider.Enabled);
|
||||
// }
|
||||
|
||||
protected override void OnUpdate()
|
||||
{
|
||||
if ( Network.IsOwner )
|
||||
|
||||
Reference in New Issue
Block a user