using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Breeding : MonoBehaviour
{
public Transform obj_1;
public Transform obj_2;
public float distantion;
void Start() {
}
void Update() {
distantion = Vector3.Distance(obj_1.position, obj_2.position);
Debug.Log("Distance " + distantion.ToString());
if(distantion => 3) {
if(Input.GetKeyDown("space")) {
print("111");
}
}
}
}