public WorkSceneParam computeWorkParam() { var param = new WorkSceneParam(); param.coinGain = Random.Range(10, 20); param.leaveHour = Mathf.Clamp(m_CurrentClock + 8f, 18f, 21f); param.timespeed = 18f; return(param); }
new void Start() { base.Start(); initalCameraPosition(); m_Game.setDeltaClock(0.1f); m_Game.setTimeSpeed(12f); m_Game.startTimeLoop(); m_Game.addEventListener(this); m_SceneParam = m_Game.computeWorkParam(); m_FpsCamController.enableMove(); m_SceneUiController = m_SceneUi.GetComponent <WorkUiManager>(); m_SceneUiController.setupWorkAction(); }