/*
     * Find the correct Value that wood is changed by
     * based on passed string
     */
    public double getWoodChange(string collectMethod)
    {
        // Change BranchPerSec
        if (collectMethod == "Branch" || collectMethod == "branch")
        {
            return(branchScript.GetBranch_WpClick());
        }


        return(Int32.Parse(collectMethod));
    }
Example #2
0
 /*
  * Applies bought buttons effect
  */
 public void applyUpgrade()
 {
     if (upgradeIndex == 0)
     {
         branchScript.SetBranch_WpClick(branchScript.GetBranch_WpClick() + 5);
     }
     else if (upgradeIndex == 1)
     {
         rangerNumScript.SetRangerProductivity(rangerNumScript.GetRangerProductivity() + 10);
     }
 }