Exemple #1
0
        public void Place(int ID, HexCoordinates coords)
        {
            this.ID = ID;

            IsPlaced  = true;
            CurrentHP = MaxHP;

            SetCoordinates(coords);
            SetMaterialFromColour(CellData.GetColour(PlayerId));
            ShowPlaced();
        }
Exemple #2
0
        public void ShowBuild(Cells.CellTypes type, int playerID, HexCell origin)
        {
            Clear();

            ui.SetGameCursor(HexCursor.None);
            projectedCell = cells.CreateIndicator(type, playerID);
            projectedCell.DisplayAsIndicator(cells.HoloShader, cells.GetColour(playerID));

            var colour = new Color(0f, 1f, 0f, 0.5f);
            var coords = cells.GetValidPlacement(type, origin, true);

            ShowIndicatorGrid(coords, colour);
        }