Example #1
0
 private static void PlaySound(SystemSE se)
 {
     if (!Singleton <CustomBase> .IsInstance())
     {
         return;
     }
     Illusion.Game.Utils.Sound.Play(se);
 }
Example #2
0
    // Update is called once per frame
    void Update()
    {
        if (controller.Jump())
        {
            SystemSE systemSE = GameManager.Instance.GetSystemSE();
            systemSE.PlaySystemSE(SystemSoundEnum.se_enter);

            GameManager.Instance.ChangeScene(EScene.StageSelect);
        }
    }
Example #3
0
            public static void Play(SystemSE se)
            {
                AudioSource audioSource = Utils.Sound.Get(se);

                if (Object.op_Equality((Object)audioSource, (Object)null))
                {
                    return;
                }
                audioSource.Play();
            }
Example #4
0
 /// <summary>
 /// 初期化
 /// </summary>
 private void Initialize()
 {
     controllerManager = new ControllerManager();
     soundManager      = transform.GetChild(0).GetComponent <SoundManager>();
     systemSeManager   = transform.GetChild(0).GetComponent <SystemSE>();
     sceneManager      = new SceneChange();
     stageManager      = new StageManager();
     stageManager.Initialize(0, true);                   //Debug Test
     unlockStageManager = new UnlockManager();
     saveManager        = new SaveManager();
     saveManager.Load(unlockStageManager);               //Load
 }
Example #5
0
    void Start()
    {
        gameManager = GameManager.Instance;
        //時間計算停止
        stageManager = gameManager.GetStageManager();
        stageManager.EndStage();
        //コントローラーをロック
        controller = gameManager.GetController();
        controller.SetFadeFlag(true);
        //時間停止
        Time.timeScale = 0;
        //背景音量設定
        soundManager   = gameManager.GetSoundManager();
        systemSe       = gameManager.GetSystemSE();
        previousVolume = soundManager.MaxVolume();
        soundManager.SetMaxVolume(bgmMaxVolume);

        uiImage[0].GetComponent <PauseSelectAnime>().SetVisible(true);
        uiImage[1].GetComponent <PauseSelectAnime>().SetVisible(false);
        fadeManager = pausePanel.GetComponent <PausePanelFade>();
    }
Example #6
0
 void Start()
 {
     gameManager = GameManager.Instance;
     systemSE    = gameManager.GetSystemSE();
     controller  = gameManager.GetController();
 }
Example #7
0
 public Setting(SystemSE se)
 {
     this.Cast(Manager.Sound.Type.SystemSE);
     this.assetName = Utils.Sound.SystemSECast[se];
 }
Example #8
0
 public static bool isPlay(SystemSE se)
 {
     return(Singleton <Manager.Sound> .IsInstance() && Singleton <Manager.Sound> .Instance.IsPlay(Manager.Sound.Type.SystemSE, Utils.Sound.SystemSECast[se]));
 }
Example #9
0
 public static void Remove(SystemSE se)
 {
     Utils.Sound.Remove(Manager.Sound.Type.SystemSE, Utils.Sound.SoundBasePath[Manager.Sound.Type.SystemSE], Utils.Sound.SystemSECast[se], (string)null);
 }
Example #10
0
 public static AudioSource Get(SystemSE se)
 {
     return(Utils.Sound.Get(Manager.Sound.Type.SystemSE, Utils.Sound.SoundBasePath[Manager.Sound.Type.SystemSE], Utils.Sound.SystemSECast[se], (string)null));
 }