public void hit(Vector3 pos) { arrow = AF.getArrow(bow.transform.position); arrow.transform.parent = bow.transform; actionManager.Arrowfly(arrow, bow.transform.position); }
public void loadResources() { bow = Instantiate(Resources.Load("Prefabs/bow", typeof(GameObject))) as GameObject; target = Instantiate(Resources.Load("Prefabs/target", typeof(GameObject))) as GameObject; arrow = factory.getArrow(); }