示例#1
0
    // Deletes a story mode question
    public IEnumerator deleteStoryQ(StoryModeQuestion storyModeQ)
    {
        deleteStoryQDone = false;
        API_Connection conn = new API_Connection();

        yield return(StartCoroutine(conn.DeleteData("StoryModeQuestion/" + storyModeQ.storyModeQuestionId, s => {
            Debug.Log(JSON.Parse(s));
        })));

        deleteStoryQDone = true;
    }
示例#2
0
    // Delete Assignment
    public IEnumerator deleteAssignment(Assignment asg)
    {
        asgDeleteDone = false;
        API_Connection conn = new API_Connection();

        yield return(StartCoroutine(conn.DeleteData("assignment/" + asg.assignmentId, s => {
            print(JSON.Parse(s));
        })));

        yield return(null);

        asgQDeleteDone = true;
    }