private void Awake() { if (instance == null) { instance = this; } }
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); }