using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DxLibDLL;
using System.Net;
namespace DesignProject
{
partial class Scene
{
public System system { get; private set; }
public List<MenuManager> sceneMenu { get; private set; }
public int sceneID { get; private set; }
public int nextSceneID { get; set; }
public KeyBoard key { get { return(this.system.key);} }
public Scene(System system)
{
this.system = system;
this.sceneMenu = new List<MenuManager>();
this.sceneID = 0;
this.nextSceneID = 0;
}
public void Update(){
if (this.nextSceneID != this.sceneID)
{
this.sceneMenu[this.sceneID].isActive = false;
this.sceneID = this.nextSceneID;
this.sceneMenu[this.sceneID].isActive = true;
this.sceneMenu[this.sceneID].Init();
}
this.sceneMenu[this.sceneID].Update();
}
public void Draw()
{
this.sceneMenu[this.sceneID].Draw();
}
}
}
最終更新:2011年01月11日 10:34