Exemplo n.º 1
0
        public void CopyTo(ProjectileData other)
        {
            if (other.damage == null)
            {
                other.damage = new DamageInfo();
            }

            damage.CopyTo(other.damage);

            other.speed        = speed;
            other.acceleration = acceleration;
            other.maxSpeed     = maxSpeed;
            other.target       = target;
            other.angularSpeed = angularSpeed;
        }
Exemplo n.º 2
0
        public void CopyTo(RayShooterData other)
        {
            base.CopyTo(other);

            damage.CopyTo(other.damage);
        }