///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void Awake() { if(goQuit!=null){ quitPopUp = goQuit.GetComponent<PopUpMgr>(); } if(goLives!=null){ livesPopUp = goLives.GetComponent<PopUpMgr>(); } if(goSettings!=null){ settingsPopUp = goSettings.GetComponent<PopUpMgr>(); } if(goQuitArcade!=null){ quitArcadePopUp = goQuitArcade.GetComponent<PopUpMgr>(); } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void Awake() { if (goQuit != null) { quitPopUp = goQuit.GetComponent <PopUpMgr>(); } if (goLives != null) { livesPopUp = goLives.GetComponent <PopUpMgr>(); } if (goSettings != null) { settingsPopUp = goSettings.GetComponent <PopUpMgr>(); } if (goQuitArcade != null) { quitArcadePopUp = goQuitArcade.GetComponent <PopUpMgr>(); } }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void Awake() { LivesPopUp = GameObject.Find("ShopLivesPopUp").GetComponent<PopUpMgr>(); ShopCoinsPopUp = GameObject.Find("ShopCoinsPopUp").GetComponent<PopUpMgr>(); }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void Awake() { LivesPopUp = GameObject.Find("ShopLivesPopUp").GetComponent <PopUpMgr>(); ShopCoinsPopUp = GameObject.Find("ShopCoinsPopUp").GetComponent <PopUpMgr>(); }