public void ScoreTest() { var scoreHandler = new VirtualButtonEventHandler(); scoreHandler.CalculateScore(true); Assert.AreEqual(1, VirtualButtonEventHandler.Score); }
public void ScoreTestMinus() { var scoreHandler = new VirtualButtonEventHandler(); scoreHandler.CalculateScore(false); Assert.AreEqual(0, VirtualButtonEventHandler.Score); }
// Use this for initialization void Start() { toolbar = GameObject.Find ("Toolbar"); wand = GameObject.Find ("Wand"); virtualButtonHandler = toolbar.GetComponent <VirtualButtonEventHandler>(); wandHandler = this.GetComponent <SelectionHandler> (); }