protected override void OnEnable()
        {
            base.OnEnable();
            CommandArea commandArea = (!Singleton <Manager.Map> .IsInstance() ? (PlayerActor)null : Singleton <Manager.Map> .Instance.Player)?.PlayerController?.CommandArea;

            if (Object.op_Equality((Object)commandArea, (Object)null))
            {
                return;
            }
            if (this._labels == null)
            {
                this.Init();
            }
            if (commandArea.ContainsCommandableObject((ICommandable)this))
            {
                return;
            }
            commandArea.AddCommandableObject((ICommandable)this);
        }
        protected override void OnDisable()
        {
            base.OnDisable();
            CommandArea commandArea = (!Singleton <Manager.Map> .IsInstance() ? (PlayerActor)null : Singleton <Manager.Map> .Instance.Player)?.PlayerController?.CommandArea;

            if (Object.op_Equality((Object)commandArea, (Object)null))
            {
                return;
            }
            bool flag = commandArea.ContainsConsiderationObject((ICommandable)this);

            if (!commandArea.ContainsCommandableObject((ICommandable)this))
            {
                return;
            }
            commandArea.RemoveCommandableObject((ICommandable)this);
            if (!flag)
            {
                return;
            }
            commandArea.RefreshCommands();
        }