void OnEnable() { transform = this; mPos = serializedObject.FindProperty("m_LocalPosition"); mRot = serializedObject.FindProperty("m_LocalRotation"); mScl = serializedObject.FindProperty("m_LocalScale"); }
void OnDestroy() { transform = null; }