Hello everyone,
I would like to use this ISharedComponentData
public struct UnitType : ISharedComponentData
{
public enum Type {Base, CloseOne, CloseTwo, CloseThree, RangedOne, RangedTwo, RangedThree, RogueOne, RogueTwo, RogueThree};
}
and set it to an entitiy (the adding is happening in another script which works fine),
EntityManager.SetSharedComponentData<UnitType>(unitQuery[j], new UnitType { UnitType.Type = UnitType.Type.Base });
what results in this error message:
Do you know what is wrong here?