An extension method for Assert.AreEqual.
#pragma strict public class AssertionExampleClass extends MonoBehaviour { function Update() { //Make sure the Game Object is always tagged as "Player" gameObject.tag.MustBeEqual("Player"); } }
public class AssertionExampleClass : MonoBehaviour { void Update () { //Make sure the Game Object is always tagged as "Player" gameObject.tag.MustBeEqual("Player"); } }