Exemple #1
0
 public void InitEmergency(E_Severity severity, int peopleInvolved, UrbanArea area)
 {
     base.InitEmergency(area, severity, this.GetComponent <Renderer>().material);
     this.creationTime = Time.time;
     NewSeverity(severity);
     InitialAffectedArea = AffectedArea;
 }
Exemple #2
0
 public void InitEmergency(UrbanArea area, E_Severity severity, Material material)
 {
     this.MyArea      = area;
     this.Duration    = 0;
     this.NAmbulances = -1;
     this.NFiretrucks = -1;
     this.Severity    = severity;
     this.MyMaterial  = material;
     ChangeWaitTime();
 }
Exemple #3
0
 public void InitEmergency(E_Severity severity, int peopleInvolved, UrbanArea area)
 {
     base.InitEmergency(area, severity, this.GetComponent <Renderer>().material);
     this.NPeopleInvolved = peopleInvolved;
     this.totalPeople     = peopleInvolved;
     this.successRate     = -1;
     this.SalvationProb   = 0.99f;
     this.creationTime    = Time.time;
     NewSeverity(severity);
     ChangeWaitTime();
 }