private IEnumerator DelayedExit() { // Quick fix to avoid running multiple coroutines overlapping? float wait = CoroutineRunning - Time.time; if (wait > 0) { yield return(new WaitForSeconds(wait)); } CoroutineRunning = Time.time + CoroutineDelay + 0.1f; if (!Open) { GetComponentInChildren <CopyTexture>().LockFrame(); } yield return(new WaitForSeconds(CoroutineDelay)); if (!Open) { AHK.Run("key", Key); } }
public void OnUse(object sender, InteractableObjectEventArgs e) { AHK.Run("mouse_click"); }
protected virtual void MaxLimitReached(object sender, ControllableEventArgs e) { AHK.Run("resetview"); StaticHelpers.SpawnResourceAudioSource("confirm", transform.position, 1, 0.7f); }