Ejemplo n.º 1
0
 private void RestartRound()
 {
     m_carriageContainer.GetComponent <CarriageMenu>().Reset();
     m_currentHand.Clear();
     m_player1.Reset();
     m_player2.Reset();
     m_generator.ConstructDeck();
     InitializeRound(false);
 }
    public override void OnInspectorGUI()
    {
        DeckGenerator deck = (DeckGenerator)target;

        if (DrawDefaultInspector())
        {
        }

        if (GUILayout.Button("Generate"))
        {
            deck.ConstructDeck();
            deck.Generate();
        }

        if (GUILayout.Button("Shuffle"))
        {
            deck.Shuffle();
        }
    }