Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //****** Donations are greatly appreciated. ******
- //****** You can donate directly to Jesse through paypal at https://www.paypal.me/JEtzler ******
- var curHp : float = 100;
- var maxHp : float = 100;
- function Update () {
- if(curHp <= 0) {
- Network.Destroy(this.gameObject);
- }
- }
- @RPC
- function ApplyDamage(damage: int){
- curHp -= damage;
- Debug.Log("hit player " + curHp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement