增加错误提示
This commit is contained in:
parent
1de8149678
commit
46e28cbf9c
@ -53,6 +53,12 @@ public class MoveAction : IAction
|
||||
public void OnStart()
|
||||
{
|
||||
GameObject obj = Utility.FindObj(path);
|
||||
if (obj == null)
|
||||
{
|
||||
Debug.LogError($"没有找到路径{path}");
|
||||
return;
|
||||
}
|
||||
|
||||
obj.transform.DOMove(pos, time).onComplete = () => this.Finish(); ;
|
||||
|
||||
}
|
||||
|
||||
@ -41,6 +41,10 @@ namespace QFramework.Example
|
||||
point.name = (i + 1).ToString();
|
||||
pointMap.Add(obj, point);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError($"没有找到路径{path}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user