Changed Some Fields
This commit is contained in:
parent
fa521c0e7e
commit
e95462af00
|
@ -7,9 +7,9 @@ namespace Syntriax.Modules.Movement
|
||||||
public interface IMovementController
|
public interface IMovementController
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Member Toggle State
|
/// Member <see cref="IToggleState"/> to switch on or off
|
||||||
/// </summary>
|
/// </summary>
|
||||||
IToggleState ToggleState { get; }
|
IToggleState ToggleStateMember { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Currently active <see cref="IMovement"/>
|
/// Currently active <see cref="IMovement"/>
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace Syntriax.Modules.Movement.Implementations
|
||||||
|
|
||||||
if (groundTrigger != null)
|
if (groundTrigger != null)
|
||||||
{
|
{
|
||||||
groundTrigger.OnTriggered += OnGroundTrigger;
|
groundTrigger.OnTriggerStateChanged += OnGroundTrigger;
|
||||||
CanTakeOver = false;
|
CanTakeOver = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace Syntriax.Modules.Movement.Implementations
|
||||||
|
|
||||||
if (groundTrigger != null)
|
if (groundTrigger != null)
|
||||||
{
|
{
|
||||||
groundTrigger.OnTriggered += OnGroundTrigger;
|
groundTrigger.OnTriggerStateChanged += OnGroundTrigger;
|
||||||
CanTakeOver = false;
|
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 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;
|
protected IToggleState toggleStateOnGameObject = null;
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ namespace Syntriax.Modules.Movement
|
||||||
toggleStateOnGameObject = GetComponent<IToggleState>();
|
toggleStateOnGameObject = GetComponent<IToggleState>();
|
||||||
|
|
||||||
toggleStateOnGameObject.OnToggleStateChanged += (_) => InvokeOnMoveAction();
|
toggleStateOnGameObject.OnToggleStateChanged += (_) => InvokeOnMoveAction();
|
||||||
ToggleState.OnToggleStateChanged += (_) => InvokeOnMoveAction();
|
ToggleStateMember.OnToggleStateChanged += (_) => InvokeOnMoveAction();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void FixedUpdate()
|
protected virtual void FixedUpdate()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "com.syntriax.movement",
|
"name": "com.syntriax.movement",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"displayName": "Movement Module",
|
"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",
|
"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",
|
"unity": "2019.1",
|
||||||
|
|
Loading…
Reference in New Issue