Beispiel #1
0
 public CrashAssessmentViewModel(ICrashModel model)
 {
     _model         = model;
     CollisionForce = Vector3.zero;
     TorqueForce    = Vector3.zero;
     _endGame       = false;
 }
Beispiel #2
0
 public ShipDetailsModelFactory(ShipData data)
 {
     _fuelModel  = new FuelModel(data);
     _forceModel = new ForceModel(data);
     _winModel   = new WinModel(data);
     _crashModel = new CrashModel(data);
 }
Beispiel #3
0
 public HitListener(Transform ship, IWinModel winModel, ICrashModel crashModel)
 {
     LandingAssessment = new LandingAssessmentViewModel(winModel);
     CrashAssessment   = new CrashAssessmentViewModel(crashModel);
     _ship             = ship;
     _isOnPlatform     = false;
 }