// Start is called before the first frame update private void Start() { m_CentralSystem = World.Active.GetOrCreateSystem <CentralSystem>(); m_CentralSystem.Init(); TileText = TileTypeText; usernameText.text = PlayerPrefs.GetString("UserName", "PLAYER"); }
// Start is called before the first frame update void Start() { m_CentralSystem = World.Active.GetOrCreateSystem <CentralSystem>(); volumeRocker.value = PlayerPrefs.GetFloat("MusicVolume", 0.75f) * 100f; usernameText.text = PlayerPrefs.GetString("UserName", "PLAYER"); usernameInput.text = PlayerPrefs.GetString("UserName", "PLAYER"); }
// Start is called before the first frame update void Start() { m_CentralSystem = World.Active.GetOrCreateSystem <CentralSystem>(); m_CentralSystem.OffsetInit(); test_time = 0; _offset = 0; OffsetText = m_HealthStatusText; offsets = new int[20]; //usernameText.text = PlayerPrefs.GetString("UserName", "PLAYER"); }
public static void LoadMapByPath(string path) { if (CentralSystem.Running) { CentralSystem.Pause(); } //Open the file using the map name var stream = File.Open(path, FileMode.Open); LoadMap(stream); CentralSystem.WorldSystem.Resume(); }
public static void SaveMapByName(string mapName) { //If the central system is currently running, we return because other systems may alter the map. if (CentralSystem.Running) { CentralSystem.Pause(); } var stream = File.Open(_SavePath + "/" + mapName, FileMode.OpenOrCreate); SaveMap(stream); CentralSystem.WorldSystem.Resume(); }
public static void LoadMapByName(string mapName) { if (CentralSystem.Running) { CentralSystem.Pause(); } //Open the file using the map name var stream = File.Open(_SavePath + "/" + mapName, FileMode.Open); LoadMap(stream); CentralSystem.WorldSystem.Resume(); }
public void OnResume() { CentralSystem.Resume(); }
public void OnPause() { CentralSystem.Pause(); }
// Start is called before the first frame update private void Start() { m_CentralSystem = World.Active.GetOrCreateSystem <CentralSystem>(); m_CentralSystem.Init(ControlMode.MapEditor); usernameText.text = PlayerPrefs.GetString("UserName", "PLAYER"); }
// Start is called before the first frame update void Start() { gameObject.AddComponent <AudioSource>(); m_CentralSystem = World.Active.GetOrCreateSystem <CentralSystem>(); }