Ejemplo n.º 1
0
 public void AddOfflineCredits()
 {
     if (TimeManager.instance != null)
     {
         if (TimeManager.instance.GetSecondDifference() > 2629746)
         {
             //More than a month
             double secondMultiplier = 15770000 * 0.5;
             int    tempCredits      = CPSManager.GetCPS() * (int)secondMultiplier;
         }
         else if (TimeManager.instance.GetSecondDifference() > 5259492)
         {
             //More than 2 months
             double secondMultiplier = 15770000 * 0.4;
             int    tempCredits      = CPSManager.GetCPS() * (int)secondMultiplier;
         }
         else if (TimeManager.instance.GetSecondDifference() > 788923)
         {
             //More than 3 months
             double secondMultiplier = 15770000 * 0.3;
             int    tempCredits      = CPSManager.GetCPS() * (int)secondMultiplier;
         }
         else if (TimeManager.instance.GetSecondDifference() > 10518984)
         {
             //More than 4 months
             double secondMultiplier = 15770000 * 0.2;
             int    tempCredits      = CPSManager.GetCPS() * (int)secondMultiplier;
         }
         else if (TimeManager.instance.GetSecondDifference() > 13148730)
         {
             //More than 5 months
             double secondMultiplier = 15770000 * 0.1;
             int    tempCredits      = CPSManager.GetCPS() * (int)secondMultiplier;
         }
         else
         {
             float secondMultiplier = TimeManager.instance.GetSecondDifference() * 0.6f;
             int   tempCredits      = CPSManager.GetCPS() * (int)secondMultiplier;
             //Debug.Log(tempCredits);
             Credits += tempCredits;
         }
     }
 }
Ejemplo n.º 2
0
 private void UpdateCPS()
 {
     cpsDisplayText.text = "+" + CPSManager.GetCPS().ToString();
 }
Ejemplo n.º 3
0
 private void IncrementOverTime()
 {
     IncreaseCredits(CPSManager.GetCPS());
 }