示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     nextwave = interval * Mathf.Floor(current / interval) + interval;
     if (NestSystem.Instance.GetAnts <EnemyAnt>().Any(n => n.Data.IsAlive))
     {
         waving = true;
         fadeout.BGMsystem(attackbgmname);
         waveui.SetActive(true);
     }
 }
示例#2
0
 private void Wintercheck()
 {
     if (season == 3)
     {
         //Wintertext.text = "Winter";
         if (PlayWinterBGMornot == 0)
         {
             changeBackground.SetBackground(3);
             fadeOut.BGMsystem("ari_winter_master");
             PlayWinterBGMornot = 1;
         }
     }
     else
     {
         PlayWinterBGMornot = 0;
     }
 }
示例#3
0
 private void Springcheck()
 {
     if (season == 0)
     {
         //Springtext.text = "Spring";
         if (PlaySpringBGMornot == 0)
         {
             changeBackground.SetBackground(0);
             fadeOut.BGMsystem("test1");
             PlaySpringBGMornot = 1;
         }
     }
     else
     {
         PlaySpringBGMornot = 0;
     }
 }