Fix UI Shader

This commit is contained in:
tym
2025-09-11 15:00:19 +08:00
parent 60f8c15ee3
commit 4ff743ce2b
88 changed files with 6135 additions and 3889 deletions

View File

@@ -18,7 +18,7 @@ namespace CinemaDirector
private void Update()
{
string filename = string.Format("{0}/shot {1:D04}.png", Folder, Time.frameCount);
Application.CaptureScreenshot(filename);
ScreenCapture.CaptureScreenshot(filename);
}
}
}

View File

@@ -9,7 +9,7 @@ namespace CinemaDirector
public override void Trigger(GameObject actor)
{
NavMeshAgent component = actor.GetComponent<NavMeshAgent>();
UnityEngine.AI.NavMeshAgent component = actor.GetComponent<UnityEngine.AI.NavMeshAgent>();
if (component != null)
{
component.SetDestination(target);

View File

@@ -11,7 +11,7 @@ namespace CinemaDirector
public override void Trigger()
{
Application.CaptureScreenshot(string.Format("Assets\\{0}{1}.png", base.gameObject.name, Count++));
ScreenCapture.CaptureScreenshot(string.Format("Assets\\{0}{1}.png", base.gameObject.name, Count++));
}
}
}