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()); }
public void InvokeInvisible() { OnInvisible?.Invoke(); }