Advertisement
N1warhead

AddHealth

Sep 20th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // THIS ADD HEALTH TO PLAYER.
  2.  
  3. using UnityEngine;
  4. using System.Collections;
  5.  
  6. public class AddHealth : MonoBehaviour {
  7.  
  8. public float AddH = 100;
  9.  
  10. void OnTriggerEnter (Collider col){
  11. if (col.gameObject.tag == "Player") {
  12. col.gameObject.GetComponent<BasicHealth>().TakeDamagee (AddH);
  13.  
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement