Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 void Start()
 {
     MapView = this.GetComponent <BattleMapView>();
 }