Ejemplo n.º 1
0
 private static void PlaySound(SystemSE se)
 {
     if (!Singleton <CustomBase> .IsInstance())
     {
         return;
     }
     Illusion.Game.Utils.Sound.Play(se);
 }
Ejemplo n.º 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);
        }
    }
Ejemplo n.º 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();
            }
Ejemplo n.º 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
 }
Ejemplo n.º 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>();
    }
Ejemplo n.º 6
0
 void Start()
 {
     gameManager = GameManager.Instance;
     systemSE    = gameManager.GetSystemSE();
     controller  = gameManager.GetController();
 }
Ejemplo n.º 7
0
 public Setting(SystemSE se)
 {
     this.Cast(Manager.Sound.Type.SystemSE);
     this.assetName = Utils.Sound.SystemSECast[se];
 }
Ejemplo n.º 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]));
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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));
 }