// Update is called once per frame void Update() { // listen the mission1 if (!mission1) { while (MessageSystem.Listen(MessageSystem.Mission1)) { mission1 = true; emailAddress = MessageSystem.Next(MessageSystem.Mission1) as string; //Debug.Log(emailAddress); } } if (mission1) { while (MessageSystem.Listen(MessageSystem.NPC_Die)) { MessageSystem.Next(MessageSystem.NPC_Die); mission1_process++; } } }