Ejemplo n.º 1
0
 void FormColumn()
 {
     transform.localScale = new Vector3(0.7f, 0.2f, 0.7f);
     formation = FORMATION.COLUMN;
     unitMovementPoints -= 2f;
     unitMovementPoints += 10f;
 }
Ejemplo n.º 2
0
    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>();
    }
Ejemplo n.º 3
0
    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);
    }
Ejemplo n.º 4
0
 void FormLine()
 {
     transform.localScale = new Vector3(0.2f, 0.2f, 1f);
     formation = FORMATION.LINE;
     unitMovementPoints -= 2f;
 }