コード例 #1
0
    protected override void Awake()
    {
        base.Awake();
        bullet = transform.Find("Cartridge").gameObject;
        bullet.SetActive(false);

        trigger = transform.Find("Trigger").gameObject;

        slide          = transform.Find("Slide").GetComponent <MagazineFedPistol_Slide>();
        slideRigidbody = slide.GetComponent <Rigidbody>();
        slideCollider  = slide.GetComponent <Collider>();
    }