// Update is called once per frame
    void Update()
    {
        if (transform.position.y < -15)
        {
            //Debug.Log("test y" + " " + transform.position.y);
            GetComponent <Rigidbody>().velocity = Vector3.zero;
            currentState = collectState;
            collectState.Initialize();
            transform.position = new Vector3(startingPosition.x, startingPosition.y + 0.2f, startingPosition.z);
        }

        currentState.UpdateState();
    }
 // Use this for initialization
 void Start()
 {
     currentState = collectState;
 }