public override void OnRecovery()
 {
     this.Deactive();
     base.OnRecovery();
     followPath.Release();
     followPath = null;
     anim.Release();
     anim = null;
 }
Пример #2
0
        /// <summary>
        /// 构建倒车转弯控制点
        /// </summary>
        /// <param name="follow"></param>
        protected void ResetRacToReverse(FollowPathSuperMarketSimply follow)
        {
            var entity   = follow.ownerEntity as EntityGroundParkingCar;
            var pathUnit = GroundParingSpacePathManager.GetInstance().GetPathUnit(entity.groundParkingGroupID, entity.groundParkingIdx);
            List <RightAnglesControllNode> backRac = null;

            if (!GroundParingSpacePathManager.IsExist(pathUnit.inPathBackRac))
            {
                backRac = GroundParingSpacePathManager.GenBackRac(follow.ctrList);
                GroundParingSpacePathManager.GetInstance().AddPath(GroundParingSpacePathType.InPathBackRac, pathUnit, null, backRac);
            }
            follow.ctrList = pathUnit.inPathBackRac;
        }
Пример #3
0
        /// <summary>
        /// 构建倒车路径
        /// </summary>
        /// <param name="follow"></param>
        protected void ResetPathToReverse(FollowPathSuperMarketSimply follow)
        {
            var            entity      = follow.ownerEntity as EntityGroundParkingCar;
            var            pathUnit    = GroundParingSpacePathManager.GetInstance().GetPathUnit(entity.groundParkingGroupID, entity.groundParkingIdx);
            List <Vector3> reversePath = null;

            if (!GroundParingSpacePathManager.IsExist(pathUnit.inPathReverse))
            {
                reversePath = GroundParingSpacePathManager.GenReversePath(follow.pathPosList);
                GroundParingSpacePathManager.GetInstance().AddPath(
                    GroundParingSpacePathType.InPathReverse, pathUnit, reversePath, null);
            }
            follow.pathPosList = pathUnit.inPathReverse;
        }
Пример #4
0
 public override void Release()
 {
     owner = null;
     base.Release();
 }
Пример #5
0
 public FSMFollowPathSuperMarketSimply(FollowPathSuperMarketSimply owner)
 {
     this.owner = owner;
 }