Ejemplo n.º 1
0
 public void OnClickedPlayButton()
 {
     Debug.Log("Loading Game.");
     Clear();
     foreach (Entity entity in playerSpawnSystem.controllers.Values)
     {
         MenuSpawnSystem.SpawnUI(EntityManager, entity, "LoadGame");
     }
 }
Ejemplo n.º 2
0
 public void OnClickedClassChoiceButton(Entity camera, int arrayIndex)
 {
     if (arrayIndex < classes.Count)
     {
         Clear();
         //Debug.LogError("Loading Class [" + data.classes[arrayIndex - 1].name + "].");
         // load race choice now or whatever
         // start game as that character
         //systemsManager.gameStartSystem.newCharacterClass = data.classes[arrayIndex - 1];
         //SetGameState(GameState.LoadNewWorld);
         //int cameraID = characterID; // World.EntityManager.GetComponentData<ZoxID>(CameraSystem.cameras[characterID]).id;
         LoadPlayer(camera, 0, classes[arrayIndex].Value.id);
     }
     else
     {
         //Debug.LogError("Returning to LoadGame.");
         Clear();
         foreach (Entity entity in playerSpawnSystem.controllers.Values)
         {
             MenuSpawnSystem.SpawnUI(EntityManager, entity, "LoadCharacter");
         }
     }
 }