Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // THIS ADD HEALTH TO PLAYER.
- using UnityEngine;
- using System.Collections;
- public class AddHealth : MonoBehaviour {
- public float AddH = 100;
- void OnTriggerEnter (Collider col){
- if (col.gameObject.tag == "Player") {
- col.gameObject.GetComponent<BasicHealth>().TakeDamagee (AddH);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement