Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void DoDamage(Missile missile)
- {
- hitPoints = Mathf.Clamp(hitPoints - missile.damage, 0 , MAX_HP);
- if (hitPoints == 0)
- {
- missile.owner.photonView.RPC("RPC_AddScore", missile.owner.photonView.owner, 1);
- StartCoroutine(ExplodeTank());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement