summaryrefslogtreecommitdiff
path: root/GameCode/SetScaleFromSizeAndExtraSize.cs
blob: 22b284976122249f176cf6b68e47c2b524ebb81b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
using UnityEngine;

public class SetScaleFromSizeAndExtraSize : MonoBehaviour
{
	public float scalePerSize;

	private void Start()
	{
		float size = GetComponentInParent<RayCastTrail>().size;
		base.transform.localScale *= size * scalePerSize;
	}
}