Exemplo n.º 1
0
    // Update is called once per frame

    void GetGrid()
    {
        grid              = gridCombatSystem.GetGrid();
        lastActiveCell    = grid.GetGridObject(0, 0);
        lastPlayerCell    = grid.GetGridObject(player.transform.position);
        rangeCombatPlayer = player.rangeCombat;
    }
Exemplo n.º 2
0
 void SetUp()
 {
     grid = gridCombatSystem.GetGrid();
 }
Exemplo n.º 3
0
 void SnapToCell()
 {
     transform.position = gridCS.GetGrid().GetGridObject(transform.position).GetCellPos();
     gridCS.GetGrid().GetGridObject(transform.position).SetObjectInTile(gameObject);
 }