示例#1
0
 public void Run(renderable r)
 {
     if (lastFrameEnemiesLeft != Managers.EnemyManager.man.enemiesLeft)
     {
         if (Managers.EnemyManager.man.enemiesLeft == 2)
         {
             uiEntity.ChangeText(1 + " enemies left");
         }
         else
         {
             uiEntity.ChangeText((Managers.EnemyManager.man.enemiesLeft / 2) + 1 + " enemies left");
         }
     }
     lastFrameEnemiesLeft = Managers.EnemyManager.man.enemiesLeft;
 }
示例#2
0
 public void Run(renderable r)
 {
     if (lastFrameLevel != Managers.EnemyManager.man.level)
     {
         uiEntity.ChangeText("Level " + Managers.EnemyManager.man.level);
     }
     lastFrameLevel = Managers.EnemyManager.man.level;
 }
示例#3
0
 public void Run(renderable r)
 {
     if (lastFrameHealth != pcHealth.currentHealth)
     {
         uiEntity.ChangeText("Health: " + pcHealth.currentHealth);
     }
     lastFrameHealth = pcHealth.currentHealth;
 }
示例#4
0
 public void Run(renderable r)
 {
     currentPos = GetPlayerPos();
     if (lastPos != currentPos)
     {
         uiEntity.ChangeText("[" + Managers.WorldManager.man.currentChunkPos.X + "," + Managers.WorldManager.man.currentChunkPos.Y + "] {" + currentPos.X + "," + currentPos.Y + "}");
     }
     lastPos = currentPos;
 }