Changed Some Fields
This commit is contained in:
parent
fa521c0e7e
commit
e95462af00
|
@ -7,9 +7,9 @@ namespace Syntriax.Modules.Movement
|
|||
public interface IMovementController
|
||||
{
|
||||
/// <summary>
|
||||
/// Member Toggle State
|
||||
/// Member <see cref="IToggleState"/> to switch on or off
|
||||
/// </summary>
|
||||
IToggleState ToggleState { get; }
|
||||
IToggleState ToggleStateMember { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Currently active <see cref="IMovement"/>
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace Syntriax.Modules.Movement.Implementations
|
|||
|
||||
if (groundTrigger != null)
|
||||
{
|
||||
groundTrigger.OnTriggered += OnGroundTrigger;
|
||||
groundTrigger.OnTriggerStateChanged += OnGroundTrigger;
|
||||
CanTakeOver = false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Syntriax.Modules.Movement.Implementations
|
|||
|
||||
if (groundTrigger != null)
|
||||
{
|
||||
groundTrigger.OnTriggered += OnGroundTrigger;
|
||||
groundTrigger.OnTriggerStateChanged += OnGroundTrigger;
|
||||
CanTakeOver = false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,11 +31,11 @@ namespace Syntriax.Modules.Movement
|
|||
}
|
||||
}
|
||||
|
||||
private bool areBothToggleStatesToggled => ToggleState.IsToggledNullChecked() && toggleStateOnGameObject.IsToggledNullChecked();
|
||||
private bool areBothToggleStatesToggled => ToggleStateMember.IsToggledNullChecked() && toggleStateOnGameObject.IsToggledNullChecked();
|
||||
|
||||
public List<IMovement> Movements { get; protected set; } = new List<IMovement>(32);
|
||||
|
||||
public IToggleState ToggleState { get; protected set; } = new ToggleStateMember(true);
|
||||
public IToggleState ToggleStateMember { get; protected set; } = new ToggleStateMember(true);
|
||||
|
||||
protected IToggleState toggleStateOnGameObject = null;
|
||||
|
||||
|
@ -48,7 +48,7 @@ namespace Syntriax.Modules.Movement
|
|||
toggleStateOnGameObject = GetComponent<IToggleState>();
|
||||
|
||||
toggleStateOnGameObject.OnToggleStateChanged += (_) => InvokeOnMoveAction();
|
||||
ToggleState.OnToggleStateChanged += (_) => InvokeOnMoveAction();
|
||||
ToggleStateMember.OnToggleStateChanged += (_) => InvokeOnMoveAction();
|
||||
}
|
||||
|
||||
protected virtual void FixedUpdate()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "com.syntriax.movement",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"displayName": "Movement Module",
|
||||
"description": "Dependends On:\nhttps://git.syntriax.com/Syntriax/ToggleState.git\nhttps://git.syntriax.com/Syntriax/Trigger.git\nhttps://git.syntriax.com/Syntriax/Factory.git",
|
||||
"unity": "2019.1",
|
||||
|
|
Loading…
Reference in New Issue