Ejemplo n.º 1
0
        void Start()
        {
            IMapProvider <Vector3> columnMapProvider = GetComponentInChildren <IMapProvider <Vector3> >();

            columnMap = columnMapProvider.GetMap();

            GameController.Instance.OnGameReset.TakeUntilDestroy(this).Subscribe(Bind);
        }
Ejemplo n.º 2
0
        public ColumnPositionConverter(IMapProvider <Transform> mapProvider)
        {
            var transformMap = mapProvider.GetMap();

            columns = new Vector2XYArrayAccessor <Transform>(transformMap);
        }
Ejemplo n.º 3
0
        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;
        }