public void Should_Generate_Events_Wrappers() { var root = new TestRoot(); var control = new EventsControl(); Assert.False(control.IsAttached); root.Child = control; Assert.True(control.IsAttached); root.Child = null; Assert.False(control.IsAttached); }
/*Display any UI related stuff onto the player screen*/ public void displayOnUI(string a, string b) { EventsControl eControl = initUI.transform.GetChild(0).GetComponent <EventsControl> (); if (eControl != null) { eControl.addEvent(a, "Killed", b); } else { GameManager.print("No EventControl"); } }