Example #1
0
    //-------------------------------------
    // 関数
    //-------------------------------------

    // 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" });
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        throwBom = GetComponent <ThrowBom>();

        camShake = Camera.main.GetComponent <CameraShake>();
    }
Example #3
0
 // Use this for initialization
 void Start()
 {
     throwBom = transform.parent.GetComponent <ThrowBom>();
     bombObj  = throwBom.GetBomObj();
 }