refactor: Added Backing Fields to BaseSpeed & MovementMultiplier to Expose to Editor
This commit is contained in:
parent
a4bb04860c
commit
d98e741a6e
|
@ -9,8 +9,10 @@ namespace Syntriax.Modules.Movement
|
|||
protected IStateEnable stateEnable = null;
|
||||
protected IMovementController movementController = null;
|
||||
|
||||
public float BaseSpeed { get; set; } = 1f;
|
||||
public float MovementMultiplier { get; set; } = 1f;
|
||||
[SerializeField] private float _baseSpeed = 1f;
|
||||
public float BaseSpeed { get => _baseSpeed; set => _baseSpeed = value; }
|
||||
[SerializeField] private float _movementMultiplier = 1f;
|
||||
public float MovementMultiplier { get => _movementMultiplier; set => _movementMultiplier = value; }
|
||||
|
||||
public Action<bool> OnTakeOverStateChanged { get; set; } = null;
|
||||
private bool _canTakeOver = false;
|
||||
|
|
Loading…
Reference in New Issue