public void ReceiveInterrupt(Interrupt sender, string origin, bool social, bool assist) { if (isDebugging) { Debug.Log("Interuption from: " + origin + " of type " + (social ? "social" : "") + (assist ? "assist" : "")); } // check if already engaged in a social interaction if (interruptSender != null) { return; } if (social) { // if its the last person the agent spoke to then ignore if (sender == previousInterrupt) { return; } bool acceptSocial = ProcessSocial(origin); if (acceptSocial) { interruptSender = sender; previousInterrupt = sender; //Debug.Log("My name: " + name + " sender: " + sender.name); // tell the sender to initialise social action sender.Socialise(this); // execute social action Socialise(sender); } } if (assist) { } }