示例#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();
 }