public void Hide(string newState) { Init(); if (_showable != null) { _showable.Hide(newState); } else { gameObject.SetActive(false); } }
public void Hide() { Init(); if (_showable != null) { _showable.Hide(null, () => { _activatable?.Activate(); _activatable = null; }); } else { _activatable?.Activate(); _activatable = null; gameObject.SetActive(false); } }