fix: GameObject Converter Nt Reading BehaviourController
This commit is contained in:
parent
4faac1b5ca
commit
0148afea52
@ -36,12 +36,12 @@ internal class GameObjectYamlConverter : IYamlTypeConverter
|
||||
case nameof(GameObjectDTO.Transform):
|
||||
gameObject.Transform = (TransformDTO)(new TransformYamlConverter().ReadYaml(parser, typeof(TransformDTO)) ?? new Exception());
|
||||
break;
|
||||
// case nameof(GameObjectDTO.Behaviours):
|
||||
// gameObject.Rotation = (List<BehaviourDTO>)(new BehaviourYamlConverter().ReadYaml(parser, typeof(BehaviourDTO)) ?? new Exception());
|
||||
// break;
|
||||
case nameof(GameObjectDTO.StateEnable):
|
||||
gameObject.StateEnable = (StateEnableDTO)(new StateEnableYamlConverter().ReadYaml(parser, typeof(StateEnableDTO)) ?? new Exception());
|
||||
break;
|
||||
case nameof(GameObjectDTO.BehaviourController):
|
||||
gameObject.BehaviourController = (BehaviourControllerDTO)(new BehaviourControllerYamlConverter().ReadYaml(parser, typeof(BehaviourControllerDTO)) ?? new Exception());
|
||||
break;
|
||||
}
|
||||
parser.MoveNext();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user