コード例 #1
0
    private void Awake()
    {
        audioSource = GetComponent <AudioSource>();
        damageSound = AudioManager.current.fleshShotHit;
        deathSounds = AudioManager.current.humanDeathGrunts;

        CurrentHealth = maxHealth;

        healthBar.minValue = 0;
        healthBar.maxValue = maxHealth;

        UpdateBar();
    }
コード例 #2
0
 private void Awake()
 {
     audioSource = GetComponent <AudioSource>();
     shotSound   = AudioManager.current.assaultRifleShots;
     muzzleFlash = GetComponentInChildren <ParticleSystem>();
 }