// 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");
 }
예제 #2
0
 // 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");
 }
예제 #4
0
        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();
        }
예제 #5
0
        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();
        }
예제 #6
0
        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();
        }
예제 #7
0
 public void OnResume()
 {
     CentralSystem.Resume();
 }
예제 #8
0
 public void OnPause()
 {
     CentralSystem.Pause();
 }
예제 #9
0
 // 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");
 }
예제 #10
0
 // Start is called before the first frame update
 void Start()
 {
     gameObject.AddComponent <AudioSource>();
     m_CentralSystem = World.Active.GetOrCreateSystem <CentralSystem>();
 }