Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Server]
- public void TakeDamage(GameObject fromPlayer)
- {
- health = Mathf.Max(health - 10, 0);
- if(health <= 0)
- {
- DoDeath();
- fromPlayer.GetComponent<PlayerShoot>().AddScore();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement