This commit is contained in:
Syntriax 2022-03-27 20:57:17 +03:00
parent c54605a967
commit cda057ebeb
1 changed files with 4 additions and 3 deletions

View File

@ -88,6 +88,7 @@ namespace Syntriax.Modules.Movement.Config
movement.BaseSpeed = movementConfig.BaseSpeed; movement.BaseSpeed = movementConfig.BaseSpeed;
} }
if (definition.MonoBehaviours != null)
foreach (string monoBehaviours in definition.MonoBehaviours) foreach (string monoBehaviours in definition.MonoBehaviours)
MovementFactory.Instance.AddToGameObject(gameObject, monoBehaviours); MovementFactory.Instance.AddToGameObject(gameObject, monoBehaviours);