예제 #1
0
파일: Door.cs 프로젝트: Ps3ydon/MazeWalker
 public override void ObjectFunction(entity.Player player, GameObject gameObj)
 {
     if (player.keyCount <= 0)
     {
         return;
     }
     player.keyCount--;
     ObjectManager.removeObject(gameObj);
     player.drawStatus();
 }
예제 #2
0
 public override void ObjectFunction(entity.Player player, GameObject gameObj)
 {
     player.hp -= 2;
     player.drawStatus();
 }
예제 #3
0
 public override void ObjectFunction(entity.Player player, GameObject gameObj)
 {
     ObjectManager.removeObject(gameObj);
     ObjectFunction(player);
     player.drawStatus();
 }