Пример #1
0
    void Awake()
    {
        logSeriesId = LoggerAssembly.GetLogSeriesId();

        //LOG DESTIONATION PRIORITY CHART INFO
        mySliderId = destinationSliderCounter++;
    }
 void Awake()
 {
     logSeriesId       = LoggerAssembly.GetLogSeriesId();
     globalParam       = FindObjectOfType <FlashPedestriansGlobalParameters>();
     flashInformer     = FindObjectOfType <FlashPedestriansInformer>();
     freeMessageWindow = FindObjectOfType <FlashFreeMessageWindowController>();
 }
Пример #3
0
    void Awake()
    {
        pedGlobalParam = FindObjectOfType <FlashPedestriansGlobalParameters>();

        logSeriesId = LoggerAssembly.GetLogSeriesId();

        //LOG STATION LOG INFO
        log.Info(string.Format("{0}:{1}:{2}", logSeriesId, "title", GetIdAndName() + " log"));
        //LOG STATION QUEUING CHART INFO
        log.Info(string.Format("{0}:{1}:{2}:{3}", logSeriesId, "chart type", 0, UIChartTypes.Line.ToString()));
        //LOG STATION LOG INFO
        log.Info(string.Format("{0}:{1}:{2}:{3}", logSeriesId, "legend", 0, GetIdAndName() + " queuing"));

        Collider[] coll = Physics.OverlapSphere(this.transform.position, radiusToCheckStations * 10, 1 << LayerMask.NameToLayer("Stations"));

        List <StationController> aux = new List <StationController>();

        // Add all the stations found except for this one
        foreach (Collider C in coll)
        {
            StationController station = C.GetComponent <StationController>();

            if (!station.Equals(this))
            {
                aux.Add(station);
            }
        }

        stationsNearThisStation = aux.ToArray();
    }
 void Awake()
 {
     logSeriesId  = LoggerAssembly.GetLogSeriesId();
     globalParam  = FindObjectOfType <FlashPedestriansGlobalParameters>();
     pedInformer  = FindObjectOfType <FlashPedestriansInformer>();
     stationStats = FindObjectOfType <StationStatistics>();
     spawners     = FindObjectsOfType <FlashPedestriansSpawner>();
 }
Пример #5
0
    /// <summary>
    /// Awakes the script.
    /// </summary>
    void Awake()
    {
        loggerAssembly = FindObjectOfType <LoggerAssembly>();
        logSeriesId    = LoggerAssembly.GetLogSeriesId();

        camera        = Camera.main;
        stationUIctrl = FindObjectOfType <FlashStationUIController>();
    }
    /// <summary>
    /// Awake method.
    /// </summary>
    void Awake()
    {
        globalParam       = FindObjectOfType <FlashPedestriansGlobalParameters>();
        routingController = FindObjectOfType <RoutingController>();
        activePedestrians = new Dictionary <int, FlashPedestriansController>();
        secondsPerMeter   = 1 / globalParam.averageSpeed;

        logSeriesId = LoggerAssembly.GetLogSeriesId();

        bikeStations = new Dictionary <int, BikeStationScript>();
    }
Пример #7
0
    /// <summary>
    /// Awake method.
    /// </summary>
    void Awake()
    {
        vVisData = FindObjectOfType <VVisDataTable>();

        vVisSQLite    = FindObjectOfType <VVisDataSQLite>();
        vVisUICtrl    = FindObjectOfType <VVisUIController>();
        vVisFixPoints = FindObjectOfType <VVisFixPointsSQLite>();

        multitouch = FindObjectOfType <MultitouchController>();

        loggerAssembly = FindObjectOfType <LoggerAssembly>();

        lines               = GameObject.FindGameObjectsWithTag("Line");
        roadDictionary      = new Dictionary <string, GameObject>();
        queryRoadSelection  = new List <GameObject>();
        playerRoadSelection = new List <GameObject>();
    }
Пример #8
0
    override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        if (!loggerSetup)
        {
            logSeriesId = LoggerAssembly.GetLogSeriesId();
            log.Info(string.Format("{0}:{1}:{2}", logSeriesId, "title", " Destination log"));
            log.Info(string.Format("{0}:{1}:{2}:{3}", logSeriesId, "legend", 0, "Destionation chosen"));
            loggerSetup = true;
        }

        // Recycle the pedestrian object
        var pedestrian  = animator.GetComponent <FlashPedestriansController>();
        var destination = pedestrian.routing.destinationPoint.destinationName;

        log.Info(string.Format("{0}:{1}:{2}:{3}", logSeriesId, "string", 0, destination));

        pedestrian.Recycle();
    }
Пример #9
0
    /// <summary>
    /// Awakes the script.
    /// </summary>
    void Awake()
    {
        logSeriesId = LoggerAssembly.GetLogSeriesId();

        smc  = FindObjectOfType <SumoMainController>();
        tic  = FindObjectOfType <TrafficIntegrationController>();
        ebpc = FindObjectOfType <EventButtonPanelController>();
        fped = FindObjectOfType <FlashPedestriansGlobalParameters>();

        if (timeSlider != null)
        {
            timeSliderContr = timeSlider.GetComponent <TimeSliderController>();
        }

        if (loadingSplash != null)
        {
            loadingSplash.SetActive(true);
        }
    }
Пример #10
0
    /// <summary>
    /// Starts the script.
    /// </summary>
    void Start()
    {
        loggerAssembly = FindObjectOfType <LoggerAssembly>();

        if (loggerAssembly != null && loggerAssembly.logTimeController)
        {
            //LOG TIME CONTROLLER LOG INFO
            log.Info(string.Format("{0}:{1}:{2}", logSeriesId, "title", "User time velocity log"));

            //LOG STATION QUEUING CHART INFO
            log.Info(string.Format("{0}:{1}:{2}:{3}", logSeriesId, "chart type", 1, UIChartTypes.Line.ToString()));

            //LOG TIME CONTROLLER LOG INFO
            log.Info(string.Format("{0}:{1}:{2}:{3}", logSeriesId, "legend", 0, "Time velocity changed"));
            log.Info(string.Format("{0}:{1}:{2}:{3}", logSeriesId, "legend", 1, "Time velocity values"));
        }

        Time.timeScale = timeVelocity;
    }
Пример #11
0
    void Awake()
    {
        logSeriesId = LoggerAssembly.GetLogSeriesId();

        stationUI         = GameObject.Find("StationUI");
        stationController = this.GetComponent <StationController>();
        camera            = Camera.main;
        messageWindow     = FindObjectOfType <FlashFreeMessageWindowController>();

        if (ebpc == null)
        {
            ebpc = FindObjectOfType <EventButtonPanelController>();
        }

        if (stationController != null)
        {
            UpdateStationMaterial(stationController.outOfService);
        }
    }
Пример #12
0
    void Awake()
    {
        logSeriesId = LoggerAssembly.GetLogSeriesId();

        //LOG SUBSCRIBER SLIDER LOG INFO
        log.Info(string.Format("{0}:{1}:{2}", logSeriesId, "title", "Bikers slider log"));

        //LOG SUBSCRIBER SLIDER VALUE CHART INFO
        log.Info(string.Format("{0}:{1}:{2}:{3}", logSeriesId, "chart type", 1, UIChartTypes.Line.ToString()));

        //LOG SUBSCRIBER SLIDER LOG INFO
        log.Info(string.Format("{0}:{1}:{2}:{3}", logSeriesId, "legend", 0, "Bikers slider value changed"));
        log.Info(string.Format("{0}:{1}:{2}:{3}", logSeriesId, "legend", 1, "Bikers slider value"));

        globalFlashParam = FindObjectOfType <FlashPedestriansGlobalParameters>();

        if (ebpc == null)
        {
            ebpc = FindObjectOfType <EventButtonPanelController>();
        }
    }
 void Awake()
 {
     logSeriesId = LoggerAssembly.GetLogSeriesId();
     globalParam = FindObjectOfType <FlashPedestriansGlobalParameters>();
     spawners    = FindObjectsOfType <FlashPedestriansSpawner>();
 }
Пример #14
0
    void Awake()
    {
        loggerAssembly = FindObjectOfType <LoggerAssembly>();

        multitouch = FindObjectOfType <MultitouchController>();
    }
 void Awake()
 {
     logSeriesId = LoggerAssembly.GetLogSeriesId();
     stationUI   = FindObjectOfType <FlashStationUIController>();
     pedInformer = FindObjectOfType <FlashPedestriansInformer>();
 }