Beispiel #1
0
    public void PlayerAttack()
    {
        if (!m_gameOver)
        {
            if (m_labyrinth.GetCurrentRoom().roomType == Room.RoomType.ENEMY)
            {
                m_player.Attack(m_labyrinth.GetCurrentRoom().enemy);

                if (m_labyrinth.GetCurrentRoom().enemy.IsDead())
                {
                    Debug.Log("You won this battle!");
                    m_labyrinth.ChangeRoom();
                }
            }
        }
    }