Пример #1
0
 public ProjectileInfo(string prefabName, ProjectileSpreadType spreadType, int projectileCount, float error, float burstDelay)
 {
     this.prefabName      = prefabName;
     this.spreadType      = spreadType;
     this.projectileCount = projectileCount;
     this.error           = error;
     this.burstDelay      = burstDelay;
 }
Пример #2
0
 public ProjectileInfo(string prefabName, ProjectileSpreadType spreadType, int projectileCount, float error, float burstDelay,
                       bool addInitialForce, AddForceInfo?initialForce = null)
 {
     this.prefabName      = prefabName;
     this.spreadType      = spreadType;
     this.projectileCount = projectileCount;
     this.error           = error;
     this.burstDelay      = burstDelay;
     this.addInitialForce = addInitialForce;
     this.initialForce    = initialForce ?? new AddForceInfo();
 }