1
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using BITFALL.Guns.States;
|
||||
using BITFALL.Player.Movement;
|
||||
@@ -118,8 +119,16 @@ namespace BITFALL.Guns
|
||||
_playerMovement = entity.Get<IPlayerMovement>();
|
||||
_movement.OnStateChanged += OnMovementStateChanged;
|
||||
_movement.OnCommand += OnMovementCommand;
|
||||
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
actionGroup.UnRegisterCallback(fireAction, OnFire);
|
||||
actionGroup.UnRegisterCallback(aimAction, OnAim);
|
||||
actionGroup.UnRegisterCallback(reloadAction, OnReload);
|
||||
actionGroup.UnRegisterCallback(meleeAction, OnMelee);
|
||||
}
|
||||
|
||||
private void OnMovementCommand(object obj)
|
||||
{
|
||||
switch (obj)
|
||||
|
Reference in New Issue
Block a user