/// <summary> /// Ulear the fields of a task then calls the APIManager to update the server /// </summary> public void ClearTaskContent() { this.title.SetText(""); this.description.SetText(""); this.user.SetText(""); this.status = ""; this.task.description = ""; this.task.title = ""; this.task.userId = 0; this.task.status = "todo"; StartCoroutine(apiManager.ClearTask(this.task)); }