Пример #1
0
 void healSub()
 {
     partialSub(0, 3.0f);
     scSM.PlaySE(2);
     scGM.life += (scGM.maxLife * 0.2f);
     if (scGM.life > scGM.maxLife)
     {
         scGM.life = scGM.maxLife;
     }
 }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     goSM = GameObject.Find("SoundManager");
     scSM = goSM.GetComponent <SoundMgr>();
     scSM.PlaySE(0);
     scSM.PlayBGM(true, true, 1);
     // 自動スリープを無効にする
     Screen.sleepTimeout = SleepTimeout.NeverSleep;
     // Cubeプレハブを元に、インスタンスを生成、
 }