Exemplo n.º 1
0
 public override void OnUse()
 {
     base.OnUse();
     this.attackerId      = 0;
     this.targetId        = 0;
     this.attackerPos     = VInt3.zero;
     this.initSpeed       = 0x3e8;
     this.accelerateSpeed = 0x3e8;
     this.enableRotate    = true;
     this.rotationTime    = 0;
     this.dirType         = BeatBackDirType.Position;
     this.atteDistance    = 0;
     this.done_           = false;
     this.moveDirection   = VInt3.zero;
     this.fromRot         = Quaternion.identity;
     this.toRot           = Quaternion.identity;
     this.lastTime_       = 0;
     this.motionControler = null;
 }
Exemplo n.º 2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            BeatBackDuration duration = src as BeatBackDuration;

            this.attackerId      = duration.attackerId;
            this.targetId        = duration.targetId;
            this.attackerPos     = duration.attackerPos;
            this.initSpeed       = duration.initSpeed;
            this.accelerateSpeed = duration.accelerateSpeed;
            this.enableRotate    = duration.enableRotate;
            this.rotationTime    = duration.rotationTime;
            this.dirType         = duration.dirType;
            this.atteDistance    = duration.atteDistance;
            this.done_           = duration.done_;
            this.moveDirection   = duration.moveDirection;
            this.fromRot         = duration.fromRot;
            this.toRot           = duration.toRot;
            this.lastTime_       = duration.lastTime_;
        }