Try this:
void OnCollisionEnter2D(Collision collisionInfo)
{
if (collisionInfo.transform.tag == "1")
transform.position = homeBase;
local = 0;
}