Files
FPS-Kit-2.0/Assets/FPS Kit Version 2.0/_CustomAssets/Scripts/Network C#/HitBox.cs
T
reedgamingstudio 5b8ebb7a35 test
testing
2014-12-16 00:23:12 -06:00

17 lines
458 B
C#

//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);
}
}