Assets.Scripts.Turrets.TurretModel.Clone C# (CSharp) Method

Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
return object
        public object Clone()
        {
            return new TurretModel
            {
                aoeDamage = this.aoeDamage,
                aoeRange = this.aoeRange,
                damage = this.damage,
                damageOverTime = this.damageOverTime,
                range = this.range,
                rateOfFire = this.rateOfFire,
                attackOptions = this.attackOptions,
                Slow = Slow,
                SlowDuration = SlowDuration,
                MindControlDuration = this.MindControlDuration,
                turretType = this.turretType,
                UpgradeNames = this.UpgradeNames.Clone(),
                UpgradePaths = this.UpgradePaths.ToDictionary(entry => entry.Key, entry => entry.Value)
            };
        }
TurretModel