Beispiel #1
0
    // View the previous card in the test hand
    public void testPreviousButton()
    {
        Dictionary <string, object> prms = new Dictionary <string, object>();

        prms.Add("hand", hand);

        HandButtonScript.Instance().previousCard(prms);
    }
Beispiel #2
0
    // Make sure there's only one instance of this class
    public static HandButtonScript Instance()
    {
        if (_instance == null)
        {
            GameObject go = new GameObject(); // Can probably be tied to an existing game object
            _instance = go.AddComponent <HandButtonScript>();
        }

        return(_instance);
    }