Ejemplo n.º 1
0
    protected void Start()
    {
        if (handler_GameData)
        {
            handler_GameData.AddObserver(this);
        }

        if (ui_BtSetting)
        {
            ui_BtSetting.onClick.AddListener(OnClickForSetting);
        }
        if (ui_BtAdvertisement)
        {
            ui_BtAdvertisement.onClick.AddListener(OnClickForAdvertisement);
        }
        if (ui_FireButton)
        {
            ui_FireButton.SetCallBack(this);
        }
        if (ui_LevelUp)
        {
            ui_LevelUp.SetCallBack(this);
        }

        if (ui_BtSpeedUp)
        {
            ui_BtSpeedUp.onClick.AddListener(OnClickForSpeedUp);
        }
        RefreshUI();
    }