コード例 #1
0
    public void EndGame()
    {
        // Clear the arena
        arenaManager.Clear();
        playerHand.Clear();
        opponentHand.Clear();
        playerDeck.Clear();
        opponentDeck.Clear();

        currentPhase           = new DrawPhase();
        waitForInitialLaneFill = false;
        gameLoop     = false;
        selectedLane = null;
        uiManager.gameResultLabel.text  = "";
        uiManager.gameResultLabel.color = Color.black;

        //TODO for any coroutines, make sure to interrupt / stop them
        //Can get into an odd state with extra initial hand cards being drawn
    }