Converted Toggle State to a Submodule

This commit is contained in:
2022-11-14 13:04:09 +03:00
parent 364fc6b935
commit 2ac0a1c606
12 changed files with 10 additions and 98 deletions

View File

@@ -1,5 +1,5 @@
using System;
using Syntriax.Modules.Movement.State;
using Syntriax.Modules.ToggleState;
using UnityEngine;
namespace Syntriax.Modules.Movement
@@ -39,7 +39,7 @@ namespace Syntriax.Modules.Movement
protected virtual void Start()
{
toggleState = GetComponent<ToggleState>();
toggleState = GetComponent<IToggleState>();
movementController = GetComponent<IMovementController>();
movementController.OnMovementActivated += OnActivated;