private void DrawHud(SpriteBatch spriteBatch) { // Score ScoreHud.Draw(spriteBatch, Screen.Player.Score); // Time LevelHud.Draw(spriteBatch, Screen.Player.Level); // Time TimeHud.Draw(spriteBatch, Convert.ToInt32(TotalTime)); }
//初始化外部控制器 private void Start() { m_levelHud = FindObjectOfType <LevelHud>(); }