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

            SubscribeToNearbyGameObjectAdded();
        }
示例#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>();
        }
 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;
 }
示例#4
0
        protected override void OnAwake()
        {
            proximityChecker = Components.Get <IProximityChecker>();

            SetRegion();
        }