protected override void Initialize() { base.Initialize(); BattleMap testMap = new BattleMap(40, 40); BattleMapView view = new BattleMapView(testMap); UIViewport viewport = new UIViewport(0, 0, GraphicsDevice.DisplayMode.Width, GraphicsDevice.DisplayMode.Height, view, this); ActiveState.UI.Add(viewport); LoadData(); }
void Start() { MapView = this.GetComponent <BattleMapView>(); }