Changed Some Fields

This commit is contained in:
Syntriax 2022-12-17 11:59:08 +03:00
parent fa521c0e7e
commit e95462af00
5 changed files with 8 additions and 8 deletions

View File

@ -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"/>

View File

@ -19,7 +19,7 @@ namespace Syntriax.Modules.Movement.Implementations
if (groundTrigger != null)
{
groundTrigger.OnTriggered += OnGroundTrigger;
groundTrigger.OnTriggerStateChanged += OnGroundTrigger;
CanTakeOver = false;
}
}

View File

@ -21,7 +21,7 @@ namespace Syntriax.Modules.Movement.Implementations
if (groundTrigger != null)
{
groundTrigger.OnTriggered += OnGroundTrigger;
groundTrigger.OnTriggerStateChanged += OnGroundTrigger;
CanTakeOver = false;
}
}

View File

@ -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()

View File

@ -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",