Ejemplo n.º 1
0
    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);
        }
    }
Ejemplo n.º 2
0
 public void OnUse(object sender, InteractableObjectEventArgs e)
 {
     AHK.Run("mouse_click");
 }
Ejemplo n.º 3
0
 protected virtual void MaxLimitReached(object sender, ControllableEventArgs e)
 {
     AHK.Run("resetview");
     StaticHelpers.SpawnResourceAudioSource("confirm", transform.position, 1, 0.7f);
 }