I am currently working on a game project. I am using float value as a dimension as I have to store multiple pawns in a single cell of a grid.
At some point I have to declare an array location points for selection and movement purpose, so I am using this code to declare
public PlayerScript[,] Pawns {get; set;}
but by default the value for [,] are taken as int and every time I have to typecast them to int to check the if conditions. And the assignment statement is not working. is it any alternative style to write the same thing to declare the values as float?
Pawns[0.1f,3.14f].xandyalways whole numbers?