Ejemplo n.º 1
0
 public override void OnUse()
 {
     base.OnUse();
     this.targetId          = -1;
     this.type              = SetCollisionTick.ColliderType.Box;
     this.Pos               = VInt3.zero;
     this.Size              = VInt3.one;
     this.Radius            = 1000;
     this.SectorRadius      = 1000;
     this.Degree            = 160;
     this.Rotation          = 0;
     this.Height            = 500;
     this.SizeGrowthValue   = VInt3.zero;
     this.RadiusGrowthValue = 0;
 }
Ejemplo n.º 2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            SetCollisionTick setCollisionTick = src as SetCollisionTick;

            this.targetId          = setCollisionTick.targetId;
            this.type              = setCollisionTick.type;
            this.Pos               = setCollisionTick.Pos;
            this.Size              = setCollisionTick.Size;
            this.Radius            = setCollisionTick.Radius;
            this.SectorRadius      = setCollisionTick.SectorRadius;
            this.Degree            = setCollisionTick.Degree;
            this.Rotation          = setCollisionTick.Rotation;
            this.Height            = setCollisionTick.Height;
            this.SizeGrowthValue   = setCollisionTick.SizeGrowthValue;
            this.RadiusGrowthValue = setCollisionTick.RadiusGrowthValue;
        }