Created
December 29, 2016 06:38
-
-
Save unity3dcollege/70190d4bfc3ad15e902725dd23116cf7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class NPC : MonoBehaviour | |
{ | |
internal void TakeDamage(int amount) | |
{ | |
GetComponent<Health>().TakeDamage(amount); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment