private void OnTriggerExit(Collider other) { if (other.TryGetComponent(out CharacterControls _)) { interactable = false; UpdateStatement?.Invoke(); indicator.SetActive(false); } }
//Function : UpdateFunction //Method : This is the Function that //used For Update Invoke The Update Function public void UpdateFunction() { UpdateStatement?.Invoke(); }