public override void SendStatistics() { ratio = InitialAffectedArea / AffectedArea; //Debug.Log("hi"); //Debug.Log(InitialAffectedArea); //Debug.Log(AffectedArea); MyArea.Ratio(AffectedArea / InitialAffectedArea); MyArea.AddEmergencyStatistics(this, ratio); }
public override void SendStatistics() { ratio = InitialAffectedArea / AffectedArea; //Debug.Log("hi"); //Debug.Log(InitialAffectedArea); //Debug.Log(AffectedArea); MyArea.Ratio(AffectedArea / InitialAffectedArea); if (successRate > ratio) { successRate = ratio; } //notify area +central MyArea.AddEmergencyStatistics(this, successRate); }