public Transform[] obstacles; //necesitamos los obstaculos para cuando choquemos con ellos // Start is called before the first frame update void Start() { kineticsBall = new KineticsShoot(speed, new Vector3(direction.x, direction.y, direction.z), new Vector3(0f, 0f, gravity), transform, trainers, obstacles); }