예제 #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;
 }
예제 #2
0
파일: Emergency.cs 프로젝트: ana3A/aasma
 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();
 }
예제 #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();
 }