private void ContactAnswered(iFruitContact contact) { // The contact has answered, we can execute our code UI.Notify("The contact has answered."); // We need to close the phone at a moment. // We can close it as soon as the contact pick up calling _iFruit.Close(). // Here, we will close the phone in 5 seconds (5000ms). _iFruit.Close(5000); }
private void docAnswered(iFruitContact contact) { Random random = new Random(); int index = random.Next(Dialogue.docPositive.Count); string docResponse = Dialogue.docPositive[index]; newJobStartTick = Environment.TickCount + new Random().Next(NEW_JOB_MIN_TICKS, NEW_JOB_MAX_TICKS); _iFruit.Close(5000); currentSubtitle = "Doc: " + docResponse; subtitleEndTick = Environment.TickCount + 4000; }
public void Contact_Answered(iFruitContact contact) { if (contact == this.contact) { this.startMission = !this.startMission; if (startMission) { Hitman.HitmanMission.hitmanNotify("Hey there, I got your call. Clients are always hungry !"); } else { Hitman.HitmanMission.hitmanNotify("Okay. Clients will have to go get their pizzas themselves, i guess..."); } phone.Close(); } }