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; }
public void Run(renderable r) { if (lastFrameLevel != Managers.EnemyManager.man.level) { uiEntity.ChangeText("Level " + Managers.EnemyManager.man.level); } lastFrameLevel = Managers.EnemyManager.man.level; }
public void Run(renderable r) { if (lastFrameHealth != pcHealth.currentHealth) { uiEntity.ChangeText("Health: " + pcHealth.currentHealth); } lastFrameHealth = pcHealth.currentHealth; }
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; }