void FormColumn() { transform.localScale = new Vector3(0.7f, 0.2f, 0.7f); formation = FORMATION.COLUMN; unitMovementPoints -= 2f; unitMovementPoints += 10f; }
void Start() { tgs = TerrainGridSystem.instance; state = STATE.MOVESELECT; formation = FORMATION.IDLE; isSelectingStart = true; tgs.OnCellClick += (grid, cellIndex, buttonIndex) => BuildPath(cellIndex); //tgs.OnCellEnter += (grid, cellIndex) => ShowLineOfSight(cellIndex); unitList = new List<GameObject>(); }
void Start() { tgs = TerrainGridSystem.instance; stats = ScriptableObject.CreateInstance <UnitStats>(); unitMovementPoints = stats.movementPoints; state = STATE.MOVESELECT; formation = FORMATION.IDLE; isSelectingStart = true; tgs.OnCellClick += (grid, cellIndex, buttonIndex) => BuildPath(cellIndex); //tgs.OnCellEnter += (grid, cellIndex) => ShowLineOfSight(cellIndex); }
void FormLine() { transform.localScale = new Vector3(0.2f, 0.2f, 1f); formation = FORMATION.LINE; unitMovementPoints -= 2f; }