private static void PlaySound(SystemSE se) { if (!Singleton <CustomBase> .IsInstance()) { return; } Illusion.Game.Utils.Sound.Play(se); }
// 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); } }
public static void Play(SystemSE se) { AudioSource audioSource = Utils.Sound.Get(se); if (Object.op_Equality((Object)audioSource, (Object)null)) { return; } audioSource.Play(); }
/// <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 }
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>(); }
void Start() { gameManager = GameManager.Instance; systemSE = gameManager.GetSystemSE(); controller = gameManager.GetController(); }
public Setting(SystemSE se) { this.Cast(Manager.Sound.Type.SystemSE); this.assetName = Utils.Sound.SystemSECast[se]; }
public static bool isPlay(SystemSE se) { return(Singleton <Manager.Sound> .IsInstance() && Singleton <Manager.Sound> .Instance.IsPlay(Manager.Sound.Type.SystemSE, Utils.Sound.SystemSECast[se])); }
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); }
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)); }