コード例 #1
0
 private void HandleTimeSlow()
 {
     timeSlow = GamerPrefs.GetSlowTimeDuration();
     timeSlowAmountText.text = "時 : " + timeSlow.ToString();
     if (timeSlow < TimeSlowCap)
     {
         timeSlowUpgrCost      = (int)((timeSlow * timeSlow) / 2);
         timeSlowCostText.text = "Upgrade Cost 金: " + timeSlowUpgrCost.ToString();
     }
     else
     {
         timeSlowUpgrCost        = int.MaxValue;
         timeSlowCostText.text   = "Fully Upgraded";
         timeSlowButtonText.text = "X";
     }
 }
コード例 #2
0
 // Use this for initialization
 private void Start()
 {
     gameOn         = true;
     score          = 0;
     scoreText.text = "点 : " + score.ToString();
     okane          = 0;
     okaneText.text = "金 : " + okane.ToString();
     currentHp      = maxHP;
     currentWave    = 1;
     InitLife();
     InitMusic();
     timeSlow = GamerPrefs.GetSlowTimeDuration();
     MovingThingsFactory.DungoFactoryWorking = true;
     MovingThingsFactory.CanJumpWaves        = false;
     MovingThingsFactory.CanSlowHunger       = false;
     isTimeSlowed = false;
     ShowCurrentWaveToPlayer();
     ResetIndicators();
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     gameOn         = true;
     score          = 0;
     scoreText.text = "点 : " + score.ToString();
     okane          = 0;
     okaneText.text = "金 : " + okane.ToString();
     currentHP      = maxHP;
     currentWave    = 1;
     InitLife();
     InitMusic();
     timeSlow = GamerPrefs.GetSlowTimeDuration();
     MovingTingsFactory.DUNGO_FACTORY_WORKING = true;
     MovingTingsFactory.CAN_JUMP_WAVES        = false;
     MovingTingsFactory.CAN_SLOW_HUNGER       = false;
     isTimeSlowed = false;
     ShowCurrentWaveToPlayer();
     ResetIndicators();
 }