コード例 #1
0
    // Start is called before the first frame update
    void Start()
    {
        player         = GameObject.FindObjectOfType <PlayerControllerBB>().transform;
        this.sfxPlayer = this.GetComponentInChildren <AudioSource>();
        //this.gunScript = this.GetComponentInChildren<PersistentGunStats>();
        this.gunScript = this.GetComponent <PersistentGunStats>();
        //this.gunHolder = this.gunScript.GetComponent<SpriteRenderer>();

        GameManagerActions.current.defeatEvent.AddListener(this.DisableComponent);
    }