// 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); }
// 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); }