示例#1
0
 public void hit(Vector3 pos)
 {
     arrow = AF.getArrow(bow.transform.position);
     arrow.transform.parent = bow.transform;
     actionManager.Arrowfly(arrow, bow.transform.position);
 }
示例#2
0
 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();
 }