private void Awake() { //取得 _controller = GetComponent <LarvaController>(); shoot_Obj = GetComponentInChildren <LarvaShootObj>(); _move = GetComponent <MoveTwoPoints>(); player = GameObject.FindWithTag("PlayerTag"); }
public void SetLarvaGameObject(GameObject go) { larva = go; larvaC = go.GetComponent <LarvaController>(); }