Exemple #1
0
        // TODO:

        /*   - remove highlight upon snapping
         *   - filter to not highlight squares that are already occupied
         *   - cannot re-drag after specific scenarios (eg, day is over)
         */

        public void Start()
        {
            gridManager   = FindObjectOfType <GridManager>();
            gameGrid      = gridManager.gameGrid;
            inventoryGrid = gridManager.inventoryGrid;
            mainCollider  = GetComponent <Collider2D>();
            noFilter      = new ContactFilter2D();
        }
Exemple #2
0
        private List<IActor> _actors; // агенты, отвечающие за свою область

        #endregion Fields

        #region Constructors

        protected GameState()
        {
            _actors = new List<IActor>();
            Grid = new Grid(); // сетка на карте
            Scores = new ConcurrentDictionary<int, Score>();
        }