public void ThrowApple(){
apple = Instantiate(applePrefab, new Vector3(gameObject.transform.position.x,gameObject.transform.position.y,0), Quaternion.identity, gameObject.transform);
apple.transform.position = new Vector3(ShootFromHere.transform.position.x,ShootFromHere.transform.position.y,0);
apple.touchPos = hero.transform.position;
}

Leave a Reply