public override void Initialize(int progressNumber) { instance = this; //half sad singleton uiLinks = GameObject.FindObjectOfType <UIGameLinks>(); if (!ButtonInteractions.firstPlay) { uiLinks.replayButton.SetActive(false); } gameManager = GameObject.FindObjectOfType <GameManager>(); gameManager.Initialize(); currentLevelFunction = QuestionBank.Instance.Initialize(); UIManager.Instance.Initialize(currentLevelFunction); numberOfStacksSolved = 0; numberOfStacksNotSolved = 0; UIManager.Instance.ChangeScienceAmt(amtOfScience); winningStreak = 0; base.Initialize(progressNumber); if (ChildBot.childBotActive) { childBot = new ChildBot(); } //LoadLevelPkg(LevelPkg.GenerateLevelPackage(currentDifficulty), currentDifficulty); }
public void Initialize(LoLFunction firstLolFunction) { uiLinks = GameFlow.uiLinks; SetPlaceholderContainerActive(!answerFocused); Rect rect = uiLinks.graph.rect; graphAspect = (rect.width > 0) ? rect.height / rect.width : 0f; timer = 0f; SetIncomingWaveAlpha(0f); ChangeLolFunction(firstLolFunction); }