public void Freeze() { _hM.Pause(); _isFrozen = true; _frozenAura.SetActive(true); Invoke("Unfreeze", 5f); }
//only hoMove IEnumerator PauseAndResume(float seconds) { hoScript.Pause(); yield return(new WaitForSeconds(seconds)); hoScript.Resume(); }
public void Freeze() { _hM.Pause(); _isFrozen = true; _frozenAura.SetActive(true); Invoke("Unfreeze", 5f); }
//only hoMove IEnumerator PauseAndResume(float seconds) { hoScript.Pause(); yield return(new WaitForSeconds(seconds)); hoScript.Resume(); }