Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     targetScript = FindObjectOfType(typeof(Target_script)) as Target_script;
 }
Ejemplo n.º 2
0
 void Start()
 {
     rb           = ballGameObject.GetComponent <Rigidbody>();
     targetScript = FindObjectOfType(typeof(Target_script)) as Target_script;
 }