public void Throw(Vector3 _start, Vector3 _end, float _speed, PitchingMachine pitchingMachine1) { start = _start; end = new Vector3(_end.x, _end.y + 0.5f, _end.z); // print(_end); // print(new Vector3(_end.x, _end.y + 0.5f, _end.z)); //new Vector3(_end.x, _end.y + 0.5f, _end.z);//_end; speed = _speed; pitchingMachine = pitchingMachine1; }
private void Awake() { instance = this; }