public void ShowPopup(EOPERATION_RESULT type, string msg) { message.text = msg; switch (type) { case EOPERATION_RESULT.FAIL: message.color = Color.red; break; case EOPERATION_RESULT.SUCCESS: message.color = Color.green; break; } gameObject.SetActive(true); }
public void ShowCancelOperationPopup(EOPERATION_RESULT type, string message) { cancelOperationPopup.ShowPopup(type, message); }
public void ShowResultPopup(EOPERATION_RESULT type, string message) { resultPopup.ShowPopup(type, message); }