upd
This commit is contained in:
parent
86c4908f43
commit
61c47b6b45
@ -105,12 +105,12 @@ public sealed class Kal : Component, IPlayerBase
|
||||
|
||||
if ( Input.Pressed( "Slot1" ) )
|
||||
{
|
||||
Inventory.SetActive("Pistol");
|
||||
Inventory?.SetActive("Pistol");
|
||||
}
|
||||
|
||||
if ( Input.Pressed( "Slot2" ) )
|
||||
{
|
||||
Inventory.Disarm();
|
||||
Inventory?.Disarm();
|
||||
}
|
||||
|
||||
CharacterController.WishVelocity = wishDirection * wishSpeed;
|
||||
|
@ -183,7 +183,7 @@ public partial class Weapon : Component, IInventoryItem
|
||||
}
|
||||
|
||||
void CreateModels()
|
||||
{
|
||||
{
|
||||
WorldModelRenderer = Components.Create<SkinnedModelRenderer>();
|
||||
WorldModelRenderer.Model = WorldModel;
|
||||
WorldModelRenderer.AnimationGraph = WorldModel.AnimGraph;
|
||||
|
Loading…
x
Reference in New Issue
Block a user