An extension method for Assert.IsNull.
#pragma strict public class AssertionExampleClass extends MonoBehaviour { var myClassReference: MyClass; function Update() { //Make sure the myClassReference reference is never set myClassReference.MustBeNull(); } }
public class AssertionExampleClass : MonoBehaviour { MyClass myClassReference; void Update () { //Make sure the myClassReference reference is never set myClassReference.MustBeNull(); } }