Esempio n. 1
0
    public override void _PhysicsProcess(float deltaTime)
    {
        UpdateShipStatusInfo();
        //ActiveSensors.GenerateEMSReadings();
        //ActiveSensors.PerformScan(0f, Mathf.Pi * 2f, 400f);
        PassiveSensors.GeneratePassiveSensorReadings();

        if (SensorsController.IsProcessing)
        {
            SensorsController.SensorsUpdate(shipStatusInfo, ActiveSensors, PassiveSensors, deltaTime);
        }

        if (NavigationController.IsProcessing)
        {
            NavigationController.NavigationUpdate(shipStatusInfo, gameCore.GalaxyMap.GalaxyMapData, deltaTime);
        }

        if (PropulsionController.IsProcessing)
        {
            PropulsionController.PropulsionUpdate(shipStatusInfo, ThrusterControls, deltaTime);
        }

        if (DefenceController.IsProcessing)
        {
            DefenceController.DefenceUpdate(shipStatusInfo, Turret.TurretControls, deltaTime);
        }

        if (!IsLanded)
        {
            TimeElapsed += deltaTime;
        }
    }
Esempio n. 2
0
 private void Awake()
 {
     projectileController = GetComponent <ProjectileController>();
     propulsionController = GetComponent <PropulsionController>();
     directionController  = GetComponent <DirectionController>();
 }