void Awake() { if (instance != null) { if (instance != this) { Debug.LogWarning("More than one instance of TutorialInfographic. Fix me!"); Destroy(gameObject); } } else { instance = this; } }
void Start() { audioManager = AudioManager.instance; defenderSpawner = DefenderSpawner.instance; optionsController = OptionsController.instance; tutorialInfographic = TutorialInfographic.instance; textPopupsObjectPoolParent = GameObject.Find("Text Popups"); if (backdrop.activeSelf) { backdrop.SetActive(false); } if (buttonsParent.activeSelf) { buttonsParent.SetActive(false); } if (quitConfirmation.activeSelf) { quitConfirmation.SetActive(false); } }