// TargetedDialogCallback.cs using Simuspaces.Simulation; public class TargetedDialogCallback : SimuScriptBase { public string TargetUsername = ""; // set in inspector / serialized state if exposed public override void Start() { Log("Showing targeted dialog to: " + TargetUsername); ShowDialog( "Targeted Dialog", "Click OK or Cancel. The script will log your response.", SSModalDialogIcon.Warning, SSModalDialogButtons.OKCancel, OnDialogResult, TargetUsername ); } void OnDialogResult(SSModalDialogResult result) { Log("Dialog callback returned: " + result); } }