Esempio n. 1
0
        protected SafeBlockWrapper BlockAt(Vector2 location)
        {
            return(SequentialSensor(() =>
            {
                var mapBlock = MapGenerator.getInstance().GetBlockAtLocation(location);

                return SafeBlockWrapper.GetData(mapBlock);
            }));
        }
Esempio n. 2
0
        protected SafeBlockWrapper CurrentBlock()
        {
            return(SequentialSensor(() =>
            {
                var mapBlock = MapGenerator.getInstance().GetBlockAtLocation(PlayerController.getInstance().CurrentLocation);

                return SafeBlockWrapper.GetData(mapBlock);
            }));
        }