예제 #1
0
    /*
     * // spawn a sorceress
     * public void SpawnSorceress(){
     *      if (gameState == 1)
     *              localPlayer.CmdIncreaseUnit(8);
     * }*/

    // -------------- UPGRADES -------------- //
    public void PurchaseMiningTools()
    {
        if (!localPlayer.UpgradeStatus(0))
        {
            if (localPlayer.GetPlayerGold() > 120)
            {
                localPlayer.CmdPurchaseUpgrade(0, 120);
                EventSystem.current.currentSelectedGameObject.GetComponent <Button>().interactable = false;
            }
        }
    }