public static string GetFsmSavePath(Skill fsm) { if (fsm == null) { return(""); } if (fsm.UsedInTemplate) { return("Template." + fsm.UsedInTemplate.Name); } string text = fsm.OwnerName + '.' + Labels.GetFsmLabel(fsm); if (SkillPrefabs.IsPrefab(fsm)) { return("Prefab." + text); } return(text); }
public static bool IsPersistent(Skill fsm) { return(fsm != null && (fsm.UsedInTemplate || SkillPrefabs.IsPrefab(fsm))); }