mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-12 12:25:16 -05:00
fixed hail
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user