//[Button("+")] //private void AddStateConfig() //{ // var arr = System.DateTime.Now.Ticks.ToString().Reverse(); // StateConfigs.Add(new StateConfig() { Guid = string.Concat(arr) }); //} //[HideLabel] //[ReadOnly] //[OnInspectorGUI(PrependMethodName = "DrawStateList"/*, AppendMethodName = "EndDrawStateMatrix"*/)] //public string SplitTitle = ""; private void OnEnable() { attributeConfigObject = AssetDatabase.LoadAssetAtPath <AttributeConfigObject>("Assets/EGamePlay/Demo/Resources/战斗属性配置.asset"); if (attributeConfigObject == null) { } AttributeConfigs = attributeConfigObject.AttributeConfigs; StateConfigs = attributeConfigObject.StateConfigs; }
//[Button("+")] //private void AddStateConfig() //{ // var arr = System.DateTime.Now.Ticks.ToString().Reverse(); // StateConfigs.Add(new StateConfig() { Guid = string.Concat(arr) }); //} //[HideLabel] //[ReadOnly] //[OnInspectorGUI(PrependMethodName = "DrawStateList"/*, AppendMethodName = "EndDrawStateMatrix"*/)] //public string SplitTitle = ""; protected override void OnEnable() { base.OnEnable(); attributeConfigObject = AssetDatabase.LoadAssetAtPath <AttributeConfigObject>("Assets/EGamePlay-Examples/战斗属性配置.asset"); if (attributeConfigObject == null) { return; } AttributeConfigs = attributeConfigObject.AttributeConfigs; StateConfigs = attributeConfigObject.StateConfigs; }