void Start() { laserSight = GetComponent <LineRenderer>(); playerGun = GameObject.Find("Gun_GFX"); cntrl = GetComponent <CharacterController>(); cam = FindObjectOfType <Camera>(); currentHP = maxHP; healthBar.SetHealth(maxHP); stunned = false; }
void Start() { laserSight = GetComponent <LineRenderer>(); playerGun = GameObject.Find("Gun_GFX"); cntrl = GetComponent <CharacterController>(); cam = FindObjectOfType <Camera>(); currentHP = maxHP; healthBar.SetHealth(maxHP); stunned = false; }