public void ShowControllers(bool show) { HandLeft?.HoldController(show); HandRight?.HoldController(show); ControllerLeft?.gameObject.SetActive(show); ControllerRight?.gameObject.SetActive(show); }
public void ShowControllers(bool show) { if (HandLeft != null) { HandLeft.HoldController(show); } if (HandRight != null) { HandRight.HoldController(show); } if (ControllerLeft != null) { ControllerLeft.gameObject.SetActive(show); } if (ControllerRight != null) { ControllerRight.gameObject.SetActive(show); } }