/// <summary> /// Calls the specified function at the very end of the current frame. /// </summary> /// <param name="doThis"> Type the function you want to call. Does not support functions that require arguements.</param> public static void Function(Action doThis) { if (doThis != null && instance) { instance.StartCoroutine(WaitforNext(doThis)); } }