public bool CheckCollision(GameObject other) { this.ApproximatePosition(); other.ApproximatePosition(); if (this.mapX == other.mapX && this.mapY == other.mapY) { return(true); } else { return(false); } }