Advertisement
Munchy2007

Part6b_4

Mar 14th, 2018
7,965
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1.         public void DoDamage(Missile missile)
  2.         {
  3.             hitPoints = Mathf.Clamp(hitPoints - missile.damage, 0 , MAX_HP);
  4.             if (hitPoints == 0)
  5.             {
  6.                 missile.owner.photonView.RPC("RPC_AddScore", missile.owner.photonView.owner, 1);
  7.                 StartCoroutine(ExplodeTank());
  8.             }
  9.  
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement