public new virtual void Awake()
        {
            pathUnitExtVehicleType = new ExtVehicleType?[PathManager.MAX_PATHUNIT_COUNT];
            pathUnitVehicleIds     = new ushort?[PathManager.MAX_PATHUNIT_COUNT];
            pathUnitPathTypes      = new ExtCitizenInstance.ExtPathType?[PathManager.MAX_PATHUNIT_COUNT];

            _instance = this;
        }
Exemple #2
0
        protected override void Awake()
        {
            // On waking up, replace the stock pathfinders with the custom one
            // but retain the original version for future replace
            // also suppress call to base class.
            _instance         = this;
            stockPathManager_ = PathManager.instance
                                ?? throw new Exception("stockPathManager is null");
            Log._Debug($"Got stock PathManager instance {stockPathManager_?.GetName()}");
            PathManagerInstance.SetValue(null, this);
            Log._Debug("Should be custom: " + PathManager.instance.GetType());

            UpdateWithPathManagerValues(stockPathManager_);

            var simManagers = GetSimulationManagers();

            simManagers.Remove(stockPathManager_);
            simManagers.Add(this);
        }
Exemple #3
0
 public new virtual void Awake()
 {
     _instance = this;
 }