SetDefaults() public method

public SetDefaults ( ) : void
return void
Exemplo n.º 1
0
        internal void SetupProjectile(Projectile projectile)
        {
            ModProjectile newProjectile = (ModProjectile)Activator.CreateInstance(GetType());

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

            newProjectile.projectile = projectile;
            projectile.modProjectile = newProjectile;
            newProjectile.mod        = mod;
            newProjectile.SetDefaults();
        }