in UltraFrogRoyale/Assets/GamePlayerController.cs [139:156]
private void OnSetSize(float newSize)
{
if(!isServer)
{
this.size = newSize;
}
// the size of the frog is actually the area, when you eat another
// frog your frog grows by the area it ate
float lengthOfSide = Mathf.Sqrt(newSize);
this.transform.localScale = new Vector3(lengthOfSide, lengthOfSide, 1.0f);
if(isLocalPlayer)
{
var camera = cameraRigidBody.gameObject.GetComponent<Camera>();
camera.orthographicSize = camera.orthographicSize + 1;
}
}