示例#1
0
 public void Update()
 {
     if (Input.GetKeyDown(KeyCode.F9))
     {
         Run.instance.AdvanceStage(Run.instance.nextStageScene);
     }
     if (Input.GetKeyDown(KeyCode.F1))
     {
         TmpStuff.UpdateText(StageStatsTextAreaName, GetStageStats());
         TmpStuff.UpdateText(PlayerStatsTextAreaName, GetPlayerStats());
     }
 }
示例#2
0
        private void UpdateTextArea(string textAreaName)
        {
            if (!TmpStuff.textAreas.ContainsKey(StageStatsTextAreaName))
            {
                CreateMainInfoArea();
            }
            else
            {
                TmpStuff.UpdateText(StageStatsTextAreaName, GetStageStats());
            }

            if (!TmpStuff.textAreas.ContainsKey(PlayerStatsTextAreaName))
            {
                CreatePlayerStatsArea();
            }
            else
            {
                TmpStuff.UpdateText(PlayerStatsTextAreaName, GetPlayerStats());
            }
        }