Fix
This commit is contained in:
parent
c54605a967
commit
cda057ebeb
|
@ -88,6 +88,7 @@ namespace Syntriax.Modules.Movement.Config
|
|||
movement.BaseSpeed = movementConfig.BaseSpeed;
|
||||
}
|
||||
|
||||
if (definition.MonoBehaviours != null)
|
||||
foreach (string monoBehaviours in definition.MonoBehaviours)
|
||||
MovementFactory.Instance.AddToGameObject(gameObject, monoBehaviours);
|
||||
|
||||
|
@ -100,7 +101,7 @@ namespace Syntriax.Modules.Movement.Config
|
|||
public void SaveMovementDefinition(MovementDefinition definition)
|
||||
{
|
||||
string jsonText = JsonUtility.ToJson(definition, true);
|
||||
string path = $"Assets/Resources/{ ResourceDirectoryToDefinitions }{definition.Name}.json";
|
||||
string path = $"Assets/Resources/{ ResourceDirectoryToDefinitions }{ definition.Name }.json";
|
||||
System.IO.File.WriteAllText(path, jsonText);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue