Ejemplo n.º 1
0
        public static string GetFsmSavePath(Skill fsm)
        {
            if (fsm == null)
            {
                return("");
            }
            if (fsm.get_UsedInTemplate())
            {
                return("Template." + fsm.get_UsedInTemplate().get_name());
            }
            string text = fsm.get_OwnerName() + '.' + Labels.GetFsmLabel(fsm);

            if (SkillPrefabs.IsPrefab(fsm))
            {
                return("Prefab." + text);
            }
            string text2 = (fsm.get_GameObject() != null && fsm.get_GameObject().get_scene().get_name() != null) ? fsm.get_GameObject().get_scene().get_name().Replace(".unity", "").Replace("Assets/", "").Replace("/", ".") : "";

            return(text2 + "." + text);
        }
Ejemplo n.º 2
0
 public static bool IsPrefab(Skill fsm)
 {
     return(SkillPrefabs.IsPrefab(fsm));
 }
Ejemplo n.º 3
0
 public static bool IsPersistent(Skill fsm)
 {
     return(fsm != null && (fsm.get_UsedInTemplate() || SkillPrefabs.IsPrefab(fsm)));
 }