Esempio n. 1
0
 private static void DebugPaths()
 {
     Debug.Log(string.Concat(new string[]
     {
         "PlayMakerPaths:\nRuntimePath: ",
         SkillPaths.RuntimePath,
         "\nRuntimeFullPath: ",
         SkillPaths.RuntimeFullPath,
         "\nEditorPath: ",
         SkillPaths.EditorPath,
         "\nEditorFullPath: ",
         SkillPaths.EditorFullPath,
         "\nEditorResourcesPath: ",
         SkillPaths.EditorResourcesPath,
         "\nWatermarksPath: ",
         SkillPaths.WatermarksPath,
         "\nWatermarksFullPath: ",
         SkillPaths.WatermarksFullPath,
         "\nResourcesPath: ",
         SkillPaths.ResourcesPath,
         "\nTemplatesPath: ",
         SkillPaths.TemplatesPath,
         "\nResourcesFullPath: ",
         SkillPaths.ResourcesFullPath,
         "\nTemplatesFullPath: ",
         SkillPaths.GetTemplatesDirectory()
     }));
 }
Esempio n. 2
0
        private static void LoadPaths()
        {
            SkillPaths.RuntimePath         = SkillPaths.FixPath(EditorPrefs.GetString("PlayMakerPaths.RuntimePath", "Assets/PlayMaker/"));
            SkillPaths.EditorPath          = SkillPaths.FixPath(EditorPrefs.GetString("PlayMakerPaths.EditorPath", "Assets/PlayMaker/Editor/"));
            SkillPaths.EditorResourcesPath = SkillPaths.FixPath(Path.Combine(SkillPaths.EditorPath, "Resources"));
            SkillPaths.WatermarksPath      = SkillPaths.FixPath(Path.Combine(SkillPaths.EditorPath, "Watermarks"));
            string text = SkillPaths.EditorPath.Substring(0, SkillPaths.EditorPath.get_Length() - 7);

            SkillPaths.ResourcesPath      = SkillPaths.FixPath(Path.Combine(text, "Resources"));
            SkillPaths.TemplatesPath      = SkillPaths.FixPath(Path.Combine(text, "Templates"));
            SkillPaths.ProjectPath        = Path.Combine(Application.get_dataPath(), "..\\");
            SkillPaths.ProjectPath        = SkillPaths.FixPath(Path.GetFullPath(SkillPaths.ProjectPath));
            SkillPaths.RuntimeFullPath    = SkillPaths.FixPath(Path.GetFullPath(Path.Combine(SkillPaths.ProjectPath, SkillPaths.RuntimePath)));
            SkillPaths.EditorFullPath     = SkillPaths.FixPath(Path.GetFullPath(Path.Combine(SkillPaths.ProjectPath, SkillPaths.EditorPath)));
            SkillPaths.WatermarksFullPath = SkillPaths.FixPath(Path.GetFullPath(Path.Combine(SkillPaths.ProjectPath, SkillPaths.WatermarksPath)));
            SkillPaths.TemplatesFullPath  = SkillPaths.FixPath(Path.GetFullPath(Path.Combine(SkillPaths.ProjectPath, SkillPaths.TemplatesPath)));
            SkillPaths.ResourcesFullPath  = SkillPaths.FixPath(Path.GetFullPath(Path.Combine(SkillPaths.ProjectPath, SkillPaths.ResourcesPath)));
        }
Esempio n. 3
0
 private static void ValidatePaths()
 {
     if (EditorApp.IsSourceCodeVersion)
     {
         SkillPaths.ResetPaths();
         return;
     }
     if (!File.Exists(Path.Combine(SkillPaths.RuntimeFullPath, "PlayMaker.dll")))
     {
         SkillPaths.RuntimeFullPath = SkillPaths.FindPath("PlayMaker.dll");
         SkillPaths.RuntimePath     = new Uri(Application.get_dataPath()).MakeRelativeUri(new Uri(SkillPaths.RuntimeFullPath)).ToString();
     }
     if (!File.Exists(Path.Combine(SkillPaths.EditorFullPath, "PlayMakerEditor.dll")))
     {
         SkillPaths.EditorFullPath = SkillPaths.FindPath("PlayMakerEditor.dll");
         SkillPaths.EditorPath     = new Uri(Application.get_dataPath()).MakeRelativeUri(new Uri(SkillPaths.EditorFullPath)).ToString();
     }
     SkillPaths.SavePaths();
 }
Esempio n. 4
0
 static SkillPaths()
 {
     SkillPaths.LoadPaths();
     SkillPaths.ValidatePaths();
 }