void ResetIfActive(RTCharacterStream c) { if (c.isActiveAndEnabled) { c.ResetSkeleton(); } }
void OnEnable() { c = (RTCharacterStream)target; cSerializedObject = new SerializedObject(target); boneRotation = cSerializedObject.FindProperty("boneRotatation"); }