protected override void OnAwake() { proximityChecker = Components.Get <IProximityChecker>(); gameObjectGetter = Components.Get <IGameObjectGetter>(); SubscribeToNearbyGameObjectAdded(); }
public ChangeSceneMessageHandler(IGameObject player, IGameSceneCollection gameSceneCollection) { this.gameSceneCollection = gameSceneCollection; proximityChecker = player.Components.Get <IProximityChecker>(); presenceMapProvider = player.Components.Get <IPresenceMapProvider>(); messageSender = player.Components.Get <IMessageSender>(); }
public BoardCreator(IProximityChecker proximityChecker, ITileInstantiator tileInstantiator, IRoomBuilder roomBuilder, ICorridorBuilder corridorBuilder, ITileLayoutCreator tileLayoutCreator, IObjectInstantiator enemyInstantiator) { _proximityChecker = proximityChecker; _tileInstantiator = tileInstantiator; _roomBuilder = roomBuilder; _corridorBuilder = corridorBuilder; _tileLayoutCreator = tileLayoutCreator; _enemyInstantiator = enemyInstantiator; }
protected override void OnAwake() { proximityChecker = Components.Get <IProximityChecker>(); SetRegion(); }