1.向判定效果IInteraction中增强, 支持Hold类型判定, 这将是除Tap以外唯二的判定模式\n2.GameController现在能够打开带有Helper的项目根目录
This commit is contained in:
@@ -302,6 +302,11 @@ namespace Demo.Editor
|
||||
}
|
||||
}
|
||||
|
||||
//[Header("PersistentDataPath")]
|
||||
public string PersistentDataPath => PlatformIndicator.PersistentDataPath;
|
||||
public string PersistentProjectPath => Path.Combine(PersistentDataPath, "Projects/");
|
||||
public string PersistentHelperPath => Path.Combine(PersistentDataPath, "Helper/");
|
||||
|
||||
private void OpenGameScene(string ProjectName, bool IsCreateNewProject)
|
||||
{
|
||||
if (GameContent.instance == null)
|
||||
@@ -309,7 +314,7 @@ namespace Demo.Editor
|
||||
new GameObject("GameContent").AddComponent<GameContent>();
|
||||
}
|
||||
var content = GameContent.instance;
|
||||
content.RootSourceDir = Path.Combine(PlatformIndicator.PersistentDataPath, ProjectName) + "/";
|
||||
content.RootSourceDir = Path.Combine(PersistentProjectPath, ProjectName) + "/";
|
||||
content.IsCreateNewProject = IsCreateNewProject;
|
||||
content.ScriptableObjectTypen = GetDefaultScriptableObjectTypen();
|
||||
content.IsAutoPlay = true;
|
||||
@@ -371,7 +376,7 @@ namespace Demo.Editor
|
||||
private void Start()
|
||||
{
|
||||
// Helper Files
|
||||
ToolFile helperHeaderDir = new ToolFile(PlatformIndicator.StreamingAssetsPath) | "Helper/";
|
||||
ToolFile helperHeaderDir = new ToolFile(PersistentHelperPath);
|
||||
if (helperHeaderDir.Exists() == false)
|
||||
{
|
||||
ProjectCreateHelper.CreateHelperFiles(helperHeaderDir, CurrentProjectDefaultFileStyle);
|
||||
|
||||
Reference in New Issue
Block a user