Exemple #1
0
    void Include_platform_if_new_or_improved(List <Platform> _platformList, Platform _testPlatform, int _currentStep,
                                             Platform _accessedVia = null, CommuterState _connectionType = CommuterState.WALK)
    {
        if (_testPlatform.temporary_routeDistance > _currentStep)
        {
            _testPlatform.temporary_routeDistance       = _currentStep;
            _testPlatform.temporary_accessedViaPlatform = _accessedVia;
            _testPlatform.temporary_connectionType      = _connectionType;
//            Debug.Log(_testPlatform.GetFullName() +  ", dist: " + _testPlatform.temporary_routeDistance);
            _platformList.Add(_testPlatform);
        }
    }
Exemple #2
0
 public CommuterTask(CommuterState _state)
 {
     state = _state;
 }