예제 #1
0
        public static GUIContent GetRuntimeFsmLabelToFit(Skill fsm, float width, GUIStyle style)
        {
            string runtimeFsmLabel = Labels.GetRuntimeFsmLabel(fsm);
            float  x = style.CalcSize(new GUIContent(runtimeFsmLabel)).x;

            if (x < width)
            {
                return(new GUIContent(runtimeFsmLabel, runtimeFsmLabel));
            }
            return(new GUIContent(fsm.get_Name(), runtimeFsmLabel));
        }
예제 #2
0
 public static string GetRuntimeFsmLabel(Skill fsm)
 {
     return(Labels.GetRuntimeFsmLabel(fsm));
 }