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