public static GerenciadorEstados getInstance() { if (instance == null) { instance = new GerenciadorEstados(); } return(instance); }
// Use this for initialization void Start() { init_spot = Instantiate(Resources.Load("prefab/initial_spot", typeof(GameObject))) as GameObject; init_spot.name = "initial_spot"; init_spot.transform.position = new Vector3(2.55f, 0.023f); init_scene = -1; init_music = -1; init_anbient = -1; player = null; persona = null; current_scene_index = Application.loadedLevel; NPC_dict = new Hashtable(); Spawn_dict = new Hashtable(); inventorio = new Inventorio(); soundplayer = GetComponent <MusicManager> (); gerEstados = GerenciadorEstados.getInstance(); fm = FileManager.getInstance(); backlog = BacklogManager.getInstance(); initializeGameDataDirectory(); enableppbutton(); perfis = new Profile[2]; item_grid = inventorio.getItemGrid(); //new Item[4,4,3]; on_mainmenu = true; cam_move = false; _Hdef = Screen.height; _Wdef = Screen.width; fadingtoblack = false; fadingtoclear = false; pendingstart = false; pendingshowmenuGUI = false; _GI = new GameGUI(this); }
public void reset() { instance = new GerenciadorEstados(); }