testing
This commit is contained in:
reedgamingstudio
2014-12-16 00:23:12 -06:00
parent c0c0755cc6
commit 5b8ebb7a35
1697 changed files with 1115979 additions and 0 deletions
@@ -0,0 +1,16 @@
//This script will be attached automatically to every hit box
//It will receive damage and transmit it to PlayerDamage.cs
using UnityEngine;
using System.Collections;
public class HitBox : MonoBehaviour {
public float maxDamage;
public PlayerDamage playerDamage;
void ApplyDamage(float damage){
//So we receive bullet damage and also add other damage value we have configured in PlayerDamage.cs
playerDamage.totalDamage(damage + maxDamage);
}
}