unity check position of gameobject code example
Example: unity how to check object position
if (transform.position.x == 0)
{
print("hi");
}
if (transform.position.x == 0)
{
print("hi");
}