private void spawnUnits(int numberOfUnits, EMERGENCY_TYPE type, Vector3 targetPosition) { for (int i = 0; i < numberOfUnits; i++) { spawnUnit(type, targetPosition); } EmergencyDispatch.Report(UNIT_STATUS.AWAITING_SPAWN, null, emergencyId); }
void Start() { EmergencyDispatch.instance = this; PubSub.subscribe("Report:majorCrash", this); }