private void OnEnable() { generater = new GenerateController(); serializedObject = new SerializedObject(this); animations = serializedObject.FindProperty("animationObjects"); subAnimatorMachines = serializedObject.FindProperty("subAnimatorMachineItems"); customReorderableList = new CustomReorderableList(serializedObject, subAnimatorMachines); InitAnimationList(); }
private void OnEnable() { _isAddDefaultAnis = true; _generater = new GenerateController(); _serializedObject = new SerializedObject(this); _animations = _serializedObject.FindProperty("_animationObjects"); _machineItems = _serializedObject.FindProperty("_subMachineItems"); _customReorderableList = new CustomReorderableList(_serializedObject, _machineItems); InitAnimationList(); }