private bool keepChecking = true;
void OnCollisionStay(Collision coll)
{
if(keepChecking)
{
if(coll.tag == "WallG")
{
coll.transform.position = new Vector3(0, +1);
}
else
{
keepChecking = false;
}
}
}