public void ShowFeedback(bool success) { GameObject instance = null; instance = (success) ? displayPanel.InstantiatePanel(right) : displayPanel.InstantiatePanel(wrong); instance.SetActive(true); Destroy(instance, 0.7f); }