Esempio n. 1
0
        protected override void OnAwake()
        {
            proximityChecker = Components.Get <IProximityChecker>();
            gameObjectGetter = Components.Get <IGameObjectGetter>();

            SubscribeToNearbyGameObjectAdded();
        }
Esempio n. 2
0
        public ChangeSceneMessageHandler(IGameObject player, IGameSceneCollection gameSceneCollection)
        {
            this.gameSceneCollection = gameSceneCollection;

            proximityChecker    = player.Components.Get <IProximityChecker>();
            presenceMapProvider = player.Components.Get <IPresenceMapProvider>();
            messageSender       = player.Components.Get <IMessageSender>();
        }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
        protected override void OnAwake()
        {
            proximityChecker = Components.Get <IProximityChecker>();

            SetRegion();
        }