private void DeactivatingStateHandler() { // Fade out the hand coroutine if (!isEnabled && handFadeOutCoroutine == null) { handFadeOutCoroutine = StartCoroutine(HandFadeOut()); // Fade out the mark object if (markHandObject != null) { markHandObject.Fade(0.8f); } } // If hand has re-entered during deactivating start activating again if (isEnabled) { StopCoroutine(handFadeOutCoroutine); handFadeOutCoroutine = null; ChangeState(MarkHandState.Activating); } }