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