コード例 #1
0
 private void Update()
 {
     if (Input.GetKeyDown(stopCoroutineInput))
     {
         if (annoyingLogCoroutine != null)
         {
             annoyingLogCoroutine.Stop();
             Debug.Log(gameObject.name + " Annoying Log Coroutine Stopped.", this);
         }
         annoyingLogCoroutine = null;
     }
 }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
 private void Start()
 {
     gameObject.SetActive(false);
     OneShotCoroutine.PlayCoroutine(SelfActivate(delay));
 }
コード例 #4
0
 private void Start()
 {
     annoyingLogCoroutine = OneShotCoroutine.PlayCoroutine(AnnoyingLogCoroutine());
 }