how to deactivate any method in unity' code example Example: how to deactivate an object unity Object.SetActive(true / false);