This commit is contained in:
Oscar 2024-10-30 19:59:34 +03:00
parent 86c4908f43
commit 61c47b6b45
2 changed files with 3 additions and 3 deletions

View File

@ -105,12 +105,12 @@ public sealed class Kal : Component, IPlayerBase
if ( Input.Pressed( "Slot1" ) ) if ( Input.Pressed( "Slot1" ) )
{ {
Inventory.SetActive("Pistol"); Inventory?.SetActive("Pistol");
} }
if ( Input.Pressed( "Slot2" ) ) if ( Input.Pressed( "Slot2" ) )
{ {
Inventory.Disarm(); Inventory?.Disarm();
} }
CharacterController.WishVelocity = wishDirection * wishSpeed; CharacterController.WishVelocity = wishDirection * wishSpeed;

View File

@ -183,7 +183,7 @@ public partial class Weapon : Component, IInventoryItem
} }
void CreateModels() void CreateModels()
{ {
WorldModelRenderer = Components.Create<SkinnedModelRenderer>(); WorldModelRenderer = Components.Create<SkinnedModelRenderer>();
WorldModelRenderer.Model = WorldModel; WorldModelRenderer.Model = WorldModel;
WorldModelRenderer.AnimationGraph = WorldModel.AnimGraph; WorldModelRenderer.AnimationGraph = WorldModel.AnimGraph;