コード例 #1
0
    private void Awake()
    {
        //取得
        _controller = GetComponent <LarvaController>();
        shoot_Obj   = GetComponentInChildren <LarvaShootObj>();
        _move       = GetComponent <MoveTwoPoints>();

        player = GameObject.FindWithTag("PlayerTag");
    }
コード例 #2
0
ファイル: GameManager.cs プロジェクト: ArkInRev/LD46
 public void SetLarvaGameObject(GameObject go)
 {
     larva  = go;
     larvaC = go.GetComponent <LarvaController>();
 }