BREAKING CHANGE: Toggle 0.2.0
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
using System;
|
||||
using Syntriax.Modules.ToggleState;
|
||||
using Syntriax.Modules.State;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Syntriax.Modules.Movement
|
||||
{
|
||||
public abstract class MovementBase : MonoBehaviour, IMovement
|
||||
{
|
||||
protected IToggleState toggleState = null;
|
||||
protected IStateEnable stateEnable = null;
|
||||
protected IMovementController movementController = null;
|
||||
|
||||
public float BaseSpeed { get; set; } = 1f;
|
||||
@@ -27,8 +27,6 @@ namespace Syntriax.Modules.Movement
|
||||
}
|
||||
}
|
||||
|
||||
public IToggleState ToggleState { get; protected set; } = null;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public abstract void ApplyMovement();
|
||||
|
||||
@@ -46,7 +44,7 @@ namespace Syntriax.Modules.Movement
|
||||
|
||||
protected virtual void Start()
|
||||
{
|
||||
toggleState = GetComponent<IToggleState>();
|
||||
stateEnable = GetComponent<IStateEnable>();
|
||||
movementController = GetComponent<IMovementController>();
|
||||
|
||||
movementController.OnMovementActivated += OnActivated;
|
||||
|
Reference in New Issue
Block a user