fixed hail

This commit is contained in:
Melby
2022-05-01 18:37:04 -05:00
parent 52092d9849
commit 10de2ebe01
2 changed files with 6 additions and 2 deletions

View File

@@ -43,6 +43,10 @@ public class Hail : NetworkBehaviour
[ServerRpc(RequireOwnership = false)]
private void ScaleShadowServerRPC() {
if(ShadTemp == null || hail == null)
{
return;
}
float y = -m * (hail.transform.position.y - ShadTemp.transform.position.y) + hail.transform.localScale.x;//Find the proper current size
ScaleShadowClientRPC(shadowID, y);
}