void EventManager_OnRemovePresence(IScenePresence presence)
        {
            ScriptControllerPresenceModule m = (ScriptControllerPresenceModule)presence.RequestModuleInterface <IScriptControllerModule> ();

            if (m != null)
            {
                m.Close();
                presence.UnregisterModuleInterface <IScriptControllerModule> (m);
            }
        }
        void EventManager_OnNewPresence(IScenePresence presence)
        {
            ScriptControllerPresenceModule m = new ScriptControllerPresenceModule(presence);

            presence.RegisterModuleInterface <IScriptControllerModule> (m);
        }
 private void EventManager_OnNewPresence(IScenePresence presence)
 {
     ScriptControllerPresenceModule m = new ScriptControllerPresenceModule(presence);
     presence.RegisterModuleInterface<IScriptControllerModule>(m);
 }