예제 #1
0
 public Enemy(GameObject obj, Transform parent)
 {
     go = Object.Instantiate(obj);
     go.transform.SetParent(parent);
     aiCtr = go.GetComponent <AICtr>();
 }
예제 #2
0
 void Init()
 {
     aiCtr = pos.GetComponent <AICtr>();
     nowHp = aiCtr.blood;
 }