Hey so I'm currently working on a game in unity with a friend mine and we're trying to get the movement of our AI down. Seeing as I'm not currently fluent in C# I was wondering if there was a way to check if a value can be considered as an int (As in, a whole number). The code I want to use this for is here:
while(transform.position != int){
//Does the actual visual moving
transform.position = Vector2.MoveTowards (transform.position, monsterPosition, Time.deltaTime * speed);
}
Thanks for any help you can offer!