// 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; }
void SetUp() { grid = gridCombatSystem.GetGrid(); }
void SnapToCell() { transform.position = gridCS.GetGrid().GetGridObject(transform.position).GetCellPos(); gridCS.GetGrid().GetGridObject(transform.position).SetObjectInTile(gameObject); }