void Awake() { M_DelayBeforeLvlSwap = 30; PopUpMenu = GameObject.Find("PopUpMenu").GetComponent <Transform>(); CanvasStuff = PopUpMenu.GetComponent <scr_CanvasStuff>(); scaleUpwards = true; activeButton = null; OpenSurveyOnce = true; m_BT = BagType.def; Time.timeScale = 1; m_Camera = Camera.main.GetComponent <scr_CameraScript>(); m_EGS = EndGameState.none; ISM = GetComponent <scr_IngameSoundManager>(); PE = GetComponent <scr_PotionEffects>(); FH = GetComponent <scr_FileHandler>(); if (m_bagAmount > 0 && !GameObject.FindGameObjectWithTag("bag")) { Instantiate(bag, m_bagSpawnPos.position, Quaternion.identity); bag.SetActive(true); m_bagAmount -= 1; } m_showEndGameMenu = false; m_DisplayOnce = true; }
// Use this for initialization void Start() { GM = GetComponent <scr_GameManager>(); CS = GameObject.Find("PopUpMenu").GetComponent <scr_CanvasStuff>(); }