예제 #1
0
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 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>();
     }
 }
예제 #2
0
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    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>();
        }
    }
예제 #3
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 void Awake()
 {
     LivesPopUp = GameObject.Find("ShopLivesPopUp").GetComponent<PopUpMgr>();
     ShopCoinsPopUp = GameObject.Find("ShopCoinsPopUp").GetComponent<PopUpMgr>();
 }
예제 #4
0
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    void Awake()
    {
        LivesPopUp     = GameObject.Find("ShopLivesPopUp").GetComponent <PopUpMgr>();
        ShopCoinsPopUp = GameObject.Find("ShopCoinsPopUp").GetComponent <PopUpMgr>();
    }