コード例 #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;
 }