public void Freeze() { (transform.GetComponent("CustomThirdPersonController") as MonoBehaviour).Invoke("SetUncontrollable", 0f); }