add
This commit is contained in:
parent
558f423d9a
commit
c16e71b11b
@ -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 )
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
// MoveToNextWaypoint();
|
// MoveToNextWaypoint();
|
||||||
//}
|
//}
|
||||||
|
|
||||||
void MoveToNextWaypoint(GameObject gameObject)
|
public void MoveToNextWaypoint(GameObject gameObject)
|
||||||
{
|
{
|
||||||
if (currentWaypointIndex < waypoints.Length)
|
if (currentWaypointIndex < waypoints.Length)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user