public void ReplaceCharacterGroundState(Entitas.World.CharacterGroundState newValue) { var index = GameComponentsLookup.CharacterGroundState; var component = (CharacterGroundStateComponent)CreateComponent(index, typeof(CharacterGroundStateComponent)); component.Value = newValue; ReplaceComponent(index, component); }
public void AddPreviousCharacterGroundState(Entitas.World.CharacterGroundState newValue) { var index = GameComponentsLookup.PreviousCharacterGroundState; var component = (PreviousCharacterGroundStateComponent)CreateComponent(index, typeof(PreviousCharacterGroundStateComponent)); component.Value = newValue; AddComponent(index, component); }