internal void SetupProjectile(Projectile projectile) { ModProjectile newProjectile = (ModProjectile)Activator.CreateInstance(GetType()); newProjectile.projectile = projectile; projectile.modProjectile = newProjectile; newProjectile.mod = mod; newProjectile.SetDefaults(); }
internal void SetupProjectile(Projectile projectile) { ModProjectile newProjectile = (ModProjectile)(CloneNewInstances ? MemberwiseClone() : Activator.CreateInstance(GetType())); newProjectile.projectile = projectile; projectile.modProjectile = newProjectile; newProjectile.mod = mod; newProjectile.SetDefaults(); }