SetDefaults() public method

public SetDefaults ( ) : void
return void
示例#1
0
        internal void SetupProjectile(Projectile projectile)
        {
            ModProjectile newProjectile = (ModProjectile)Activator.CreateInstance(GetType());

            newProjectile.projectile = projectile;
            projectile.modProjectile = newProjectile;
            newProjectile.mod        = mod;
            newProjectile.SetDefaults();
        }
示例#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();
        }