private void Update() { if (Input.GetKeyDown(stopCoroutineInput)) { if (annoyingLogCoroutine != null) { annoyingLogCoroutine.Stop(); Debug.Log(gameObject.name + " Annoying Log Coroutine Stopped.", this); } annoyingLogCoroutine = null; } }
private void Update() { if (Input.GetKeyDown(stopCoroutineInput)) { if (annoyingLogCoroutine != null) { annoyingLogCoroutine.Stop(); Debug.Log(gameObject.name + " Annoying Log Coroutine Stopped.", this); } annoyingLogCoroutine = null; } }