示例#1
0
 // Update is called once per frame
 void Update()
 {
     Move();
     if (remainingDamageFrames > 0)
     {
         remainingDamageFrames--;
         if (remainingDamageFrames == 0)
         {
             UnShowDamage();
         }
     }
     if (increaseScore == 1)
     {
         Main.S.score += scoreIncrease;
         increaseScore = 0;
         LevelUp.CheckLevelUp();
     }
 }