public override void Init() { base.Init(); m_GameFlowManager = GameManager.Instance.GetSubManager <GameFlowSubGameManager>(ESubManager.GameFlow); InitAllAudio(); StartMusic(); }
public override void Init() { base.Init(); Utils.GetPlayerEventManager(Player.Player1).StartListening(EPlayerEvent.OnDeath, OnPlayerDeath); Utils.GetPlayerEventManager(Player.Player2).StartListening(EPlayerEvent.OnDeath, OnPlayerDeath); m_GameFlowManager = GameManager.Instance.GetSubManager <GameFlowSubGameManager>(ESubManager.GameFlow); m_TimeManager = GameManager.Instance.GetSubManager <TimeScaleSubGameManager>(ESubManager.TimeScale); m_GameConfig = GameConfig.Instance; m_AttackConfig = AttackConfig.Instance; }