// Use this for initialization void Start() { hole = GetComponent <Hole>(); bomCount = FindObjectOfType <BomCount>(); counter = FindObjectOfType <TimeCounter>(); createMgr = transform.parent.parent.GetComponent <CreateManager>(); }
//------------------------------------- // 関数 //------------------------------------- // Use this for initialization void Start() { pumpkinParent = transform.GetChild(0).gameObject; pumpkingAnimator = pumpking.transform.GetChild(0).GetComponent <Animator>(); pumpkinParent.SetActive(false); throwBom = pumpking.GetComponent <ThrowBom>(); bomCount = GetComponent <BomCount>(); playerMove = GetComponent <PlayerMove>(); cam = Camera.main; FlickInitialize(); layerMask = LayerMask.GetMask(new string[] { "Stage", "Boss" }); }