Exemplo n.º 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));
        }
Exemplo n.º 2
0
 public static string GetRuntimeFsmLabel(Skill fsm)
 {
     return(Labels.GetRuntimeFsmLabel(fsm));
 }