Beispiel #1
0
    void Start()
    {
        shotLine         = GetComponent <LineRenderer>();
        playerController = GetComponentInParent <PlayerController>();
        if (playerController != null)
        {
            playerUIManager = playerController.GetUIManager();
            playerUIManager.ChangeGunAmmoUI(maxClipAmmo, maxClipAmmo);
        }
        gi = GetComponent <GunInteractable>();

        canFire   = true;
        reloading = false;
        clipAmmo  = maxClipAmmo;
    }
Beispiel #2
0
 void Start()
 {
     parent = GetComponentInParent <GunInteractable>();
 }