Exemplo n.º 1
0
 private void SetParent(ref PoolObjHandle <ActorRoot> parentActor, ref PoolObjHandle <ActorRoot> newActor, VInt3 trans)
 {
     if (parentActor && newActor)
     {
         this.actorSlot = parentActor.get_handle().CreateActorRootSlot(newActor, parentActor.get_handle().location, trans);
     }
 }
Exemplo n.º 2
0
 private void SetParent(ref PoolObjHandle <ActorRoot> parentActor, ref PoolObjHandle <ActorRoot> newActor, VInt3 trans)
 {
     if ((parentActor != 0) && (newActor != 0))
     {
         this.actorSlot = parentActor.handle.CreateActorRootSlot(newActor, trans);
     }
 }
 private void SetParent(ref PoolObjHandle <ActorRoot> parentActor, ref PoolObjHandle <ActorRoot> newActor, VInt3 trans)
 {
     if (parentActor && newActor)
     {
         this.actorSlot = parentActor.handle.CreateActorRootSlot(newActor, parentActor.handle.location, trans, this.bUpdateWithParentLerpPosition);
     }
 }
Exemplo n.º 4
0
        public override void Leave(Action _action, Track _track)
        {
            if (this.particleObj != null)
            {
                this.particleObj.transform.parent = null;
                ActionManager.DestroyGameObject(this.particleObj);
            }
            GameObject gameObject = _action.GetGameObject(this.targetId);

            if ((this.targetId >= 0) && (gameObject != null))
            {
                if (this.applyActionSpeedToAnimation)
                {
                    _action.RemoveTempObject(Action.PlaySpeedAffectedType.ePSAT_Anim, gameObject);
                }
                if (this.applyActionSpeedToParticle)
                {
                    _action.RemoveTempObject(Action.PlaySpeedAffectedType.ePSAT_Fx, gameObject);
                }
                this.RemoveEye();
                ActorHelper.DetachActorRoot(gameObject);
                ActionManager.DestroyGameObjectFromAction(_action, gameObject);
            }
            if (this.actorSlot != null)
            {
                PoolObjHandle <ActorRoot> actorHandle = _action.GetActorHandle(this.parentId);
                if (actorHandle != 0)
                {
                    actorHandle.handle.RemoveActorRootSlot(this.actorSlot);
                }
            }
            this.actorSlot = null;
        }
Exemplo n.º 5
0
 public override void OnUse()
 {
     base.OnUse();
     this.actorSlot   = null;
     this.sightRadius = 0;
     this.particleObj = null;
     this.actorRoot.Release();
 }
Exemplo n.º 6
0
 public override void OnUse()
 {
     base.OnUse();
     this.actorSlot     = null;
     this.sightRadius   = 0;
     this.m_particleObj = null;
     this.actorRoot.Release();
     this.sightRadius       = 0;
     this.bEyeObj           = false;
     this.EyeLifeTime       = 0;
     this.EyeCfgIdByMonster = 0;
 }
Exemplo n.º 7
0
 public override void OnUse()
 {
     base.OnUse();
     this.actorSlot     = null;
     this.m_particleObj = null;
     this.actorRoot.Release();
     this.sightRadius          = 0;
     this.bVisibleByFow        = true;
     this.bCheckVisibleByShape = false;
     this.bEyeObj                 = false;
     this.EyeLifeTime             = 0;
     this.EyeCfgIdByMonster       = 0;
     this.bInvisibleBullet        = false;
     this.bForbidBulletInObstacle = false;
 }
Exemplo n.º 8
0
 public override void Leave(Action _action, Track _track)
 {
     base.Leave(_action, _track);
     if (!this.bEyeObj)
     {
         if (this.m_particleObj)
         {
             this.m_particleObj.transform.parent = null;
             ActionManager.DestroyGameObject(this.m_particleObj);
         }
         GameObject gameObject = _action.GetGameObject(this.targetId);
         if (this.targetId >= 0 && gameObject != null)
         {
             if (this.applyActionSpeedToAnimation)
             {
                 _action.RemoveTempObject(Action.PlaySpeedAffectedType.ePSAT_Anim, gameObject);
             }
             if (this.applyActionSpeedToParticle)
             {
                 _action.RemoveTempObject(Action.PlaySpeedAffectedType.ePSAT_Fx, gameObject);
             }
             if (this.bInvisibleBullet && this.actorRoot.get_handle().ActorControl != null)
             {
                 BulletWrapper bulletWrapper = this.actorRoot.get_handle().ActorControl as BulletWrapper;
                 if (bulletWrapper != null)
                 {
                     bulletWrapper.UninitForInvisibleBullet();
                 }
             }
             this.RemoveBullet();
             ActorHelper.DetachActorRoot(gameObject);
             ActionManager.DestroyGameObjectFromAction(_action, gameObject);
         }
     }
     if (this.actorSlot != null)
     {
         PoolObjHandle <ActorRoot> actorHandle = _action.GetActorHandle(this.parentId);
         if (actorHandle)
         {
             actorHandle.get_handle().RemoveActorRootSlot(this.actorSlot);
         }
         this.actorSlot = null;
     }
 }
 public override void OnUse()
 {
     base.OnUse();
     this.actorSlot     = null;
     this.m_particleObj = null;
     this.actorRoot.Release();
     this.sightRadius                   = 0;
     this.SightRadiusGrowth             = 0;
     this.bVisibleByFow                 = true;
     this.bUpdateWithParentLerpPosition = false;
     this.bCheckVisibleByShape          = false;
     this.bEyeObj                 = false;
     this.EyeLifeTime             = 0;
     this.EyeLiftTimeGrowth       = 0;
     this.EyePerishAdvTime        = 0;
     this.EyeCfgIdByMonster       = 0;
     this.bInvisibleBullet        = false;
     this.bForbidBulletInObstacle = false;
 }