24 [RequireComponent(typeof(Transform))]
35 get => transform.localScale.x;
38 base.transform.localScale = Vector3.one * value;
48 get => transform.position;
49 set => transform.position = value;
57 get => transform.rotation;
58 set => base.transform.rotation = value;
61 #endregion Public Fields
64 #region Private Fields
68 #endregion Private Fields
71 #region Private Functions
91 var largestPositiveChange = Mathf.Max(deltaScale.x, deltaScale.y, deltaScale.z);
92 var largestNegativeChange = Mathf.Min(deltaScale.x, deltaScale.y, deltaScale.z);
93 var largestAbsoluteChange = Mathf.Abs(largestPositiveChange) > Mathf.Abs(largestNegativeChange)
94 ? largestPositiveChange
95 : largestNegativeChange;
97 transform.localScale =
_previousScale + Vector3.one * largestAbsoluteChange;
101 #endregion Private Functions
104 #region Unity Functions
121 #endregion Unity Functions