Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        InGameInstance = this;

        m_curGameState = eGameState.Ready;

        theBase     = FindObjectOfType <BaseSceneManager>();
        theSound    = FindObjectOfType <SoundManager>();
        theFade     = FindObjectOfType <FadeManager>();
        theCamera   = FindObjectOfType <CameraManager>();
        theCardInfo = FindObjectOfType <MyCardInfo>();
        theBuyList  = FindObjectOfType <CardBuyList>();

        m_myCard = new List <GameObject>();
        ani      = GetComponent <Animator>();

        m_shopBtn.GetComponent <Button>().onClick.AddListener(delegate { ClickShopBtn(); });
        m_settingBtn.GetComponent <Button>().onClick.AddListener(delegate { ClickSettingBtn(); });
        m_optionBtn.GetComponent <Button>().onClick.AddListener(delegate { ClickOptionBtn(); });
        m_backToInGameBtn.GetComponent <Button>().onClick.AddListener(delegate { ClickBackToInGameBtn(); });
        m_backToLobbyBtn.GetComponent <Button>().onClick.AddListener(delegate { ClickExitToLobbyBtn(); });
        m_skipReadyForPlayBtn.GetComponent <Button>().onClick.AddListener(delegate { ClickSkipReady(); });
    }
Exemplo n.º 2
0
 void Start()
 {
     theInGame  = FindObjectOfType <InGameManager>();
     theBuyList = FindObjectOfType <CardBuyList>();
 }