This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class EnemyHealthManager : MonoBehaviour | |
| { | |
| public int startingHealth; | |
| private int currentHealth; | |
| public float flashLength; | |
| private float flashCounter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class GunController : MonoBehaviour | |
| { | |
| public bool isFiring; | |
| public BulletController bullet; | |
| public float bulletSpeed; | |
| public float fireRate; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class DamagePlayer : MonoBehaviour | |
| { | |
| public int damageToGive; | |
| public void OnTriggerEnter(Collider other) | |
| { |
OlderNewer