Skip to content

Commit

Permalink
wait
Browse files Browse the repository at this point in the history
  • Loading branch information
denpadokei committed Jun 26, 2023
1 parent 91c3750 commit 93ce54b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Models/VRPointerHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using HarmonyLib;
using SiraUtil.Affinity;
using System;
using System.Collections;
using UnityEngine;
using VRUIControls;

Expand All @@ -13,6 +14,13 @@ public class VRPointerHelper : MonoBehaviour

protected void OnEnable()
{
this.StartCoroutine(this.InvokeEvent());
}

private IEnumerator InvokeEvent()
{
var waitInit = new WaitWhile(() => !this);
yield return waitInit;
var vrpointer = this.GetComponent<VRPointer>();
if (vrpointer != null) {
OnPointerEnable.Invoke(vrpointer, EventArgs.Empty);
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "EnhancedStreamChat",
"name": "Enhanced Stream Chat",
"author": "denpadokei",
"version": "6.0.0-rc1",
"version": "6.0.0-rc2",
"description": "Enhanced Stream Chat is a rich text chat integration mod, with full unicode, emote, and emoji support.",
"gameVersion": "1.30.2",
"dependsOn": {
Expand Down

0 comments on commit 93ce54b

Please sign in to comment.