private static void LoadMovementComponent(MovementComponentInfo info, GameEntity entity) { var moveComp = new MovementComponent(); entity.AddComponent(moveComp); moveComp.LoadInfo(info); }
public void LoadInfo(MovementComponentInfo info) { var loader = new MovementEffectLoader(); var effect = loader.Load(info.EffectInfo); effect(this.Parent); }