void DrawTimerTask(CSTimer.TimerTask timerTask) { GUILayout.BeginVertical("GroupBox"); { GUILayout.Label("name:" + timerTask.taskName); if (timerTask.isValid) { GUILayout.Label("累计时间:" + timerTask.cumulativeTime); GUILayout.Label("更新频率:" + timerTask.updateFrequence); GUILayout.Label("timeScale:" + timerTask.timeScale); GUILayout.BeginHorizontal(); if (GUILayout.Button("Cancel")) { mCSTimer.CancelTimer(timerTask.taskName); } if (GUILayout.Button(timerTask.isPause ? "Resume" : "Pause")) { timerTask.isPause = !timerTask.isPause; } GUILayout.EndHorizontal(); } else { GUILayout.Label("已失效"); } } GUILayout.EndVertical(); }