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);
}

View File

@ -24,13 +24,13 @@ EditorUserSettings:
value: 22424703114646680e0b0227036c7c1f18030a25203b68252320092a
flags: 0
RecentlyUsedScenePath-6:
value: 22424703114646680e0b0227036c7b151b180b6501273035202c1327d1e33136e7a923e7ee2e26
value: 22424703114646680e0b0227036c78111b125507233d28242c20137df7ee3d2cfb
flags: 0
RecentlyUsedScenePath-7:
value: 22424703114646680e0b0227036c78111b125507233d28242c20137df7ee3d2cfb
flags: 0
RecentlyUsedScenePath-8:
value: 22424703114646680e0b0227036c78111b125507233d28242c20137df7ee3d2cfb
value: 22424703114646680e0b0227036c7b151b180b6501273035202c1327d1e33136e7a923e7ee2e26
flags: 0
RecentlyUsedScenePath-9:
value: 22424703114646680e0b0227036c6f02131b172b282d347e38271427fb