public void SetResponse(NPCChatResponseBase response, int index) { if (response == null) { Debug.Fail("Parameter 'response' should never be null. Use UnsetResponse() instead."); UnsetResponse(); return; } _response = response; Text = (index + 1) + ": " + Response.Text; }
public void UnsetResponse() { _response = null; Text = string.Empty; }