Ejemplo n.º 1
0
    public void StartGame()
    {
        if (isBusy)
        {
            return;
        }
        if (StoreInventory.GetItemBalance(AnimineStoreAssets.BATTERY_VG_ITEM_ID) == 0)
        {
            GameObject   msgPGO = LoadHUD(Constants.HUD_MESSAGE_POPUP);
            MessagePopup mPop   = msgPGO.GetComponent <MessagePopup> ();
            mPop.SetText(LanguageManager.current.getText(LanguageNode.AddBattery));
            return;
        }

        GameControl.current.GameStart();
        gamePlay.SetActive(true);
        mainMenu.SetActive(false);
        dynamiteCount.text = StoreInventory.GetItemBalance(AnimineStoreAssets.DYNAMITE_VG_ITEM_ID) + "";
    }