// Start is called before the first frame update void Start() { m_curLvlConfig = m_listLevelConfig[m_curLvlConfigIndex]; m_timer = m_curLvlConfig.level.TimeInterval; GameManager.Instance.DelayStart(); }
private void Handle_OnRaycastToPlayer(object obj) { m_curObstaclePassThrough++; if (m_curObstaclePassThrough == GameConst.HARD_LIMIT) { Log.Info("BEGIN HARD MODE"); m_curLvlConfigIndex++; m_curLvlConfig = m_listLevelConfig[m_curLvlConfigIndex]; this.PostEvent(EventID.OnHardLimitReach); } }