Example #1
0
 public override void OnDeselected()
 {
     Debug("BotEvent OnDeselected");
     if (LuaEvents.LuaEventsAttached)
     {
         LuaEvents.DetachLuaEventHandlers();
     }
 }
Example #2
0
        public override void Stop()
        {
            Debug("BotEvent OnStop");

            if (LuaEvents.LuaEventsAttached)
            {
                LuaEvents.DetachLuaEventHandlers();
            }

            TreeRoot.Stop();

            if (BaseSettings.CurrentSettings.HBRelog_SkipToNextTask)
            {
                if (HbRelogApi.IsConnected)
                {
                    HbRelogApi.SkipCurrentTask(HbRelogApi.CurrentProfileName);
                }
            }
        }