public void ActivateWayMovement()
        {
            MapCurve way = null;

            {
                EntityComponent_ForTankDemo component = (EntityComponent_ForTankDemo)
                                                        ControlledObject.Component_GetFirstWithType(typeof(EntityComponent_ForTankDemo));
                if (component != null)
                {
                    way = component.Way;
                }
            }

            if (way != null)
            {
                DoGeneralTask(GeneralTaskTypes.WayMove, way);
            }
        }
        /// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnPostCreate(Boolean)"/>.</summary>
        protected override void OnPostCreate(bool loaded)
        {
            base.OnPostCreate(loaded);
            SubscribeToTickEvent();

            //get activationRegion
            EntityComponent_ForTankDemo component = (EntityComponent_ForTankDemo)
                                                    ControlledObject.Component_GetFirstWithType(typeof(EntityComponent_ForTankDemo));

            if (component != null)
            {
                activationRegion = component.ActivationRegion;
            }

            //listen activationRegion
            if (activationRegion != null)
            {
                activationRegion.ObjectIn += ActivationRegion_ObjectIn;
            }
        }