// Use this for initialization void Start() { portraitSelectedColor = new Color(0f, 0.35f, 66.6f, 0.6f); portraitHoverColor = new Color(0f, 0.15f, 46.6f, 0.6f); portraitDeselectedColor = new Color(0f, 0f, 0f, 0.50196f); portraitGrid = GetPanel().transform.Find("PortraitGrid").gameObject; selectedPortrait = "selectedPortrait"; CreateSelectionToggleGroup(selectedPortrait); playerSavesController = FindObjectOfType <PlayerSavesController>(); }
// Use this for initialization void Start() { myPanel = transform.Find("Panel").gameObject; playerSavesController = FindObjectOfType <PlayerSavesController>(); saveGameList = options[0].transform.Find("SaveGamesList").gameObject; loadGameList = options[1].transform.Find("LoadGamesList").gameObject; saveInput = options[0].transform.Find("SaveInput").gameObject; submitSaveBtn = options[0].transform.Find("SubmitSaveBtn").gameObject; sceneLoader = new SceneLoader(); }
// Use this for initialization void Start() { ui = FindObjectOfType <UIController>(); saveGameManager = FindObjectOfType <PlayerSavesController>(); loadGameMenuUI = FindObjectOfType <LoadGameMenuUI>(); newGameMenuUI = FindObjectOfType <NewGameMenuUI>(); saveGamesList = loadGameMenuUI.transform.Find("Panel").Find("SaveGamesList").gameObject; print(saveGamesList); mainMenus = "mainMenus"; CreateNewMenuToggleGroup(mainMenus); }
void Start() { //dbSetup.DropTable("VocabTagged"); //DbCommands.UpdateTableField("ActivatedDialogues", "Completed", "0"); //print("tables created"); //dbSetup.CopyTable("PlayerGames", "Copied"); //string[,] delFields = { { "EnglishText", "''" }, { "WelshText", "''" } }; //DbCommands.DeleteTupleInTable("VocabTranslations", delFields); //dbSetup.ReplaceTable("PlayerGames"); //Debugging.PrintDbTable("ActivatedDialogues"); DbCommands.InsertTupleToTable("PlayerGames", "0", "Current Game", "Current player", "No path", DateTime.Now.ToString(), "Start", "0", "0", "0"); DbCommands.InsertTupleToTable("PlayerGames", "-1", "New game", "New player", "No path", DateTime.Now.ToString(), "Start", "0", "0", "0"); playerSavesController = FindObjectOfType <PlayerSavesController>(); // when playerSavesController is first initialised it tries to load the // game, manually initialising rather than using Start() or Awake() // ensures it doesn't try to load it before the connection string is set // up. playerSavesController.ManuallyInitialise(); //Debugging.PrintDbTable("QuestTaskStartDialogueResults"); Destroy(gameObject); Destroy(this); }