Ejemplo n.º 1
0
 protected void Awake()
 {
     bankBalance = PlayerPrefs.GetInt(companyName, startingBankBal);
     //   TakeProfit(0);
     TakeLoss((uint)InFieldProfitLoss.GetLoss(companyName));
     InFieldProfitLoss.SetLoss(companyName, 0);
     TakeProfit((uint)InFieldProfitLoss.GetProfit(companyName));
     InFieldProfitLoss.SetProfit(companyName, 0);
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     base.Awake();
     fishing.remainingTime           = Mathf.Clamp(fishing.Interval - GlobalFunctions.GetRemainingFishingTime(), 1, int.MaxValue);
     marketing.remainingTime         = marketing.Interval - GlobalFunctions.GetRemainingMarketingTime();
     newBranchCreation.remainingTime = Mathf.Clamp(newBranchCreation.Interval - GlobalFunctions.GetRemainingBranchTime(), 1, int.MaxValue);
     newWhlingSpot.remainingTime     = Mathf.Clamp(newWhlingSpot.Interval - GlobalFunctions.GetRemainingNewSpotTime(), 1, int.MaxValue);
     monthTick.remainingTime         = monthTick.Interval - GlobalFunctions.GetRemainingMnthTime();
     whaleReserves = GlobalFunctions.GetWhaleReserves();
     IncreaseProductReserves(InFieldProfitLoss.GetWhalesHunted());
 }
Ejemplo n.º 3
0
 public void ShowResults()
 {
     gameObject.SetActive(true);
     JWHDmgTxt.text     = NumJWHDmg.ToString();
     WhalesTrtdTxt.text = NumTreatedWhales.ToString();
     WhalesLostTxt.text = NumWhalesLost.ToString();
     GlobalFunctions.AddDJINDamage(NumJWHDmg);
     GlobalFunctions.AddWhalesLost(NumWhalesLost);
     GlobalFunctions.AddWhalesSaved(NumTreatedWhales);
     LBManager.Instance.ReportAllProgress();
     RsltTxt.text    = RsltStrng;
     ShipDmgTxt.text = ((1 - GameManager.instance.playerObject.GetComponent <Health>().GetHlthinPerOne()) * 100).ToString();
     InFieldProfitLoss.SetLoss("JWH", NumJWHDmg);
     InFieldProfitLoss.SetProfit("Tasso", NumTreatedWhales + (int)(NumJWHDmg * 0.2f));
     InFieldProfitLoss.SetLoss("Tasso", NumWhalesLost * 50);
 }