/*----------Functions----------*/ //PRIVATE /// <summary> /// Initialise this objects internal information /// <summary> private void Start() { if (test1a.runEvents) { BenchmarkCombinationEvent("Test 1A", test1a); } if (test1b.runEvents) { BenchmarkCombinationEvent("Test 1B", test1b); } if (test1c.runEvents) { BenchmarkCombinationEvent("Test 1C", test1c); } if (test1d.runEvents) { BenchmarkCombinationEvent("Test 1D", test1d); } if (test1e.runEvents) { test1e.unityEvent.AddListener(() => { }); test1e.runtimeEvent.AddListener(() => { }); BenchmarkCombinationEvent("Test 1E", test1e); } if (test1f.runEvents) { BenchmarkCombinationEvent("Test 1F", test1f); } if (test1g.runEvents) { BenchmarkCombinationEvent("Test 1G", test1g); } if (test2a.runEvents) { BenchmarkBoolCombinationEvent("Test 2A", test2a); } if (test2b.runEvents) { BenchmarkBoolCombinationEvent("Test 2B", test2b); } if (test2c.runEvents) { BenchmarkBoolCombinationEvent("Test 2C", test2c); } if (test2d.runEvents) { test2d.unityEvent.AddListener(x => { }); test2d.runtimeEvent.AddListener(x => { }); BenchmarkBoolCombinationEvent("Test 2D", test2d); } Debug.Log("Tests Complete", this); onComplete.Invoke(); }
/// <summary> /// End the playback of the game /// </summary> public void EndGame() { //Stop all running coroutines that are in operation StopAllCoroutines(); //Prevent the player from moving player.CanMove = false; //Raise the completed events onComplete.Invoke(); }
/// <summary> /// Manage click callback functionality based on submission events /// </summary> /// <param name="eventData">Event data about the interaction that occurred</param> public virtual void OnSubmit(BaseEventData eventData) { onClick.Invoke(); }