// Use this for initialization void Start() { enemy = (GameObject)Instantiate (Enemy, Enemy.transform.position, Enemy.transform.rotation); unitychan = enemy.GetComponent<UnityChan_Control>(); unitychan.SetLife(Life); }
// Use this for initialization void Start() { enemy = (GameObject)Instantiate(Enemy, Enemy.transform.position, Enemy.transform.rotation); unitychan = enemy.GetComponent <UnityChan_Control>(); unitychan.SetLife(Life); }