void TestCustomEvent() { callCounter = 0; referenceScript.spawnerBehaviour = this; referenceScript.CallEvent(); tester.TestAssertion("Disabled Object Send Custom Event", callCounter == 1); }
void TestCustomEvent() { spawnCounter = 0; GameObject newObject = VRCInstantiate(referenceSpawnObject); InstantiatedObjectTesterScript testScript = (InstantiatedObjectTesterScript)newObject.GetComponent(typeof(UdonBehaviour)); testScript.spawnerBehaviour = this; testScript.CallEvent(); tester.TestAssertion("Instantiated Object Send Event", spawnCounter == 1); Destroy(newObject); }