示例#1
0
        private void TurnInvisible()
        {
            if (isInvisible)
            {
                return;
            }

            isInvisible = true;
            PlayerUi.Instance.StartInvisibility(maxTimeInvisible);
            AudioManager.Instance.Play(AudioClipName.Invisible);
            playerSprite.color = Color.black;
            OnInvisible?.Invoke();

            _invisibilityCoroutine = StartCoroutine(TurnVisibleCoroutine());
        }
示例#2
0
 public void InvokeInvisible()
 {
     OnInvisible?.Invoke();
 }