void Start() { IMapProvider <Vector3> columnMapProvider = GetComponentInChildren <IMapProvider <Vector3> >(); columnMap = columnMapProvider.GetMap(); GameController.Instance.OnGameReset.TakeUntilDestroy(this).Subscribe(Bind); }
public ColumnPositionConverter(IMapProvider <Transform> mapProvider) { var transformMap = mapProvider.GetMap(); columns = new Vector2XYArrayAccessor <Transform>(transformMap); }
public static Map LoadMap(string path, IMapProvider provider, FileInfo textureinfo) { var map = provider.GetMap(path, MapEditorManager.GameInstance.Engine.EventProvider); map.Texture = GameInstance.Engine.TextureManager.GetTexture((textureinfo == null) ? map.TextureName : textureinfo.Name); return map; }