Esempio n. 1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Esempio n. 2
0
        public World()
        {
            _updateObjectPool = new UpdateObjectPool(REFRESH_RATE);
            _updateObjectPool.Start();

            VehicleEventsManager = new VehicleEventsManager();
            _updateObjectPool.AddUpdateObject(VehicleEventsManager);

            AimingManager = new AimingManager();
            _updateObjectPool.AddUpdateObject(AimingManager);

            EntityDeathTracker = new EntityDeathTracker();

            ObjectManager = new ObjectManager(REFRESH_RATE);
        }