Exemple #1
0
    public void UpdateMovesText(GameUnit inUnit)
    {
        if (inUnit is Player)
        {
            movesCount.text = "" + inUnit.GetMovesRemaining() + "/" + inUnit.GetMaxMoves() + " Player " + (GameManager.playerTurn - 1);
        }
        else if (inUnit is Boss)
        {
            movesCount.text = "" + inUnit.GetMovesRemaining() + "/" + inUnit.GetMaxMoves() + " Boss ";
        }

        if (inUnit.GetMovesRemaining() <= 0)
        {
            movesCount.text = "Space to Continue";
        }
    }