using UnityEngine; using System.Collections; public class FTME01_ScaleMesh : MonoBehaviour { Transform myMesh; Vector3 origMeshScale; public float scaleMeshSize = 1f; public void ScaleMeshOnEnable () { myMesh = GetComponent(); origMeshScale = myMesh.localScale; } public void ScaleMeshOnDisable () { myMesh.localScale = origMeshScale; } public void ScaleMesh () { myMesh.localScale = origMeshScale * scaleMeshSize; } }