// Use this for initialization public void Initialize() { m_GameSettingConfig = ConfigManager.Instance.GetRegularityGameSetting(); m_iLimitCount = m_GameSettingConfig.PlayCountLimit; m_fLeftTime = m_GameSettingConfig.PlayTime; m_bIsFinished = false; m_DiffMgr = new RegularityGameDifficultyManager(); m_bLastStatusIsWin = true; m_iLeftRedFlower = 3; m_PlayerAnim = m_Player.GetComponent <Animator>(); ReLoadScene(); m_UIWindow.SetLeftCount(m_iLimitCount); m_UIWindow.SetLeftTime(m_fLeftTime); m_UIWindow.SetLeftFlower(m_iLeftRedFlower); }
public void Initialize() { m_ElementList = new List <PilesAlphaElement>(); m_GameSettingConfig = ConfigManager.Instance.GetRegularityGameSetting(); m_DiffMgr = new RegularityGameDifficultyManager(); m_PlayerAnim = m_ObjPlayer.GetComponent <Animator>(); m_Grid = m_ObjElementRoot.GetComponent <SimpleUIGrid>(); ReloadScene(); m_iLeftRedFlower = 3; m_iLeftWinCount = m_GameSettingConfig.PlayCountLimit; m_UIWindow.SetLeftCount(m_GameSettingConfig.PlayCountLimit); m_UIWindow.SetLeftTime(m_GameSettingConfig.PlayTime); m_UIWindow.SetLeftFlower(m_iLeftRedFlower); }