public void Generate(FiringCube source) { damage = source.damage; attackType = source.attackType; targetType = source.targetType; bulletPrefab = source.bulletPrefab; isTracing = source.isTracing; duration = source.duration; damagePerSecond = source.damagePerSecond; }
public void TakeFiringDebuff(FiringCube fc) { FiringDebuff newFiringDebuf = new FiringDebuff { attackType = fc.attackType, damagePerSecond = fc.damagePerSecond, duration = fc.duration, timer = fc.duration }; if (firingDebuff == null || newFiringDebuf > firingDebuff) { firingDebuff = newFiringDebuf; } }