Example #1
0
 public static void playChaseBgm()
 {
     if (chaseStatus == false)
     {
         chaseStatus = true;
         BgmController.GetInstance().playChaseBgm(true);
     }
     lastTime = DateTime.Now.ToString("yyyyMMddHHmmssfff");
 }
Example #2
0
 private bool event3()
 {
     if (saveController03.completed_Event03_09_MeetDevil())
     {
         BgmController.GetInstance().playEvent4Bgm();
         return(true);
     }
     else
     {
         return(true);
     }
 }
Example #3
0
 protected bool event10()
 {
     if (saveController.completed_Event04_03_FindRabbit1() &&
         saveController.completed_Event04_04_FindRabbit2())
     {
         BgmController.GetInstance().playEvent2Bgm(true);
         return(true);
     }
     else
     {
         return(true);
     }
 }
Example #4
0
            public static void StopChaseBgm()
            {
                string nowTime = DateTime.Now.ToString("yyyyMMddHHmmssfff");

                if (decimal.Parse(nowTime) - decimal.Parse(lastTime) > 1500)
                {
                    if (chaseStatus)
                    {
                        chaseStatus = false;
                        BgmController.GetInstance().playDefaultBgm();
                    }
                }
            }
Example #5
0
        /// <summary>
        /// プレイヤーの死亡
        /// </summary>
        /// <returns></returns>
        public bool playerDead()
        {
            if (Player.IsAlive())
            {
                BgmController.GetInstance().playGameOverBgm(true);

                Charactor.Pause();
                Player.Dead();

                StartCoroutine(this.DelayMethod(3.0f, () =>
                {
                    Blood.appear(new Vector3(Player.transform.position.x, 0.5f, Player.transform.position.z));
                }));
            }
            return(Blood.isAppeared());
        }
Example #6
0
 /// <summary>
 /// BGM変更
 /// </summary>
 /// <returns></returns>
 public bool playEvent5Bgm_Begin()
 {
     BgmController.GetInstance().playEvent5Bgm(true);
     return(true);
 }
Example #7
0
 /// <summary>
 /// BGM変更
 /// </summary>
 /// <returns></returns>
 public bool playEvent4Bgm()
 {
     BgmController.GetInstance().playEvent4Bgm();
     return(true);
 }
Example #8
0
 /// <summary>
 /// BGM変更
 /// </summary>
 /// <returns></returns>
 public bool playGameOverBgm_Begin()
 {
     BgmController.GetInstance().playGameOverBgm(true);
     return(true);
 }
Example #9
0
 /// <summary>
 /// BGM変更
 /// </summary>
 /// <returns></returns>
 public bool playDefaultBgm_Begin()
 {
     BgmController.GetInstance().playDefaultBgm(true);
     return(true);
 }
Example #10
0
 /// <summary>
 /// BGM停止
 /// </summary>
 /// <returns></returns>
 public bool stopBgm()
 {
     BgmController.GetInstance().stopBgm();
     return(true);
 }