This commit is contained in:
shurongsen 2024-12-04 11:38:00 +08:00
parent 558f423d9a
commit c16e71b11b
2 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,9 @@ public class Role : Fun
if (Application.isPlaying) if (Application.isPlaying)
{ {
UpdateBuff(); UpdateBuff();
Navigation.MoveToNextWaypoint(gameObject);
} }
updateAnimation(); updateAnimation();
} }
/// <summary> /// <summary>
@ -83,7 +85,7 @@ public class Role : Fun
else if (animationHighlight < 0) { else if (animationHighlight < 0) {
animationHighlight = 0; animationHighlight = 0;
} }
EditorUtility.SetDirty(this); //EditorUtility.SetDirty(this);
List<Sprite> LightSprite = AnimationTree[animationHighlight].value; List<Sprite> LightSprite = AnimationTree[animationHighlight].value;
if (LightSprite == null ) if (LightSprite == null )
{ {

View File

@ -15,7 +15,7 @@
// MoveToNextWaypoint(); // MoveToNextWaypoint();
//} //}
void MoveToNextWaypoint(GameObject gameObject) public void MoveToNextWaypoint(GameObject gameObject)
{ {
if (currentWaypointIndex < waypoints.Length) if (currentWaypointIndex < waypoints.Length)
{ {