internal void GenerateMultiplication(QuizButton button, BossMonster a_boss) { if (button.enemyChoices < 2) { enemyChoices = 2; } else if (button.enemyChoices > 6) { enemyChoices = 6; } else { enemyChoices = button.enemyChoices; } ClearEverything(); if (!questionManager) { questionManager = FindObjectOfType <questionManager>(); } questionManager.questionNeeded = CreateCorrectAnswer(button); boss = a_boss; SetBoxes(button); }
// Use this for initialization void Start() { cd = this.GetComponent <chatDecoder>(); irc = this.GetComponent <TwitchIRC>(); qm = this.GetComponent <questionManager>(); ui = this.GetComponent <uiManager>(); qm.loadNewQuestion(); roundNumber = questionsPerRound; InvokeRepeating("tick", 5, 1); }
private void Start() { qManager = GetComponentInParent <questionManager>(); }
// Use this for initialization void Start() { gm = GetComponent <gameManager>(); irc = GetComponent <TwitchIRC>(); qm = GetComponent <questionManager>(); }