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 ChangeStatus() { gameObject.SetActive(!gameObject.activeSelf); //Debug purpose only if (showOneShotCoroutine) { OneShotCoroutine.useEmptyNames = false; OneShotCoroutine.hiddenInHierarchy = false; } OneShotCoroutine.PlayDelayedAction(ChangeStatus, waitOneSecond); //Debug purpose only if (showOneShotCoroutine) { OneShotCoroutine.useEmptyNames = true; OneShotCoroutine.hiddenInHierarchy = true; } }
private void Start() { gameObject.SetActive(false); OneShotCoroutine.PlayCoroutine(SelfActivate(delay)); }
private void Start() { annoyingLogCoroutine = OneShotCoroutine.PlayCoroutine(AnnoyingLogCoroutine()); }