|
@@ -16,7 +16,7 @@ namespace GFGGame
|
|
|
|
|
|
private void Awake()
|
|
|
{
|
|
|
- preDrawRoot = new GameObject("PredrawToot");
|
|
|
+ preDrawRoot = new GameObject("PredrawRoot");
|
|
|
preDrawRoot.transform.position = new Vector3(0, 0, 0);
|
|
|
preDrawRoot.transform.localScale = Vector3.zero;
|
|
|
}
|
|
@@ -140,5 +140,16 @@ namespace GFGGame
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ public void CancelPreDraw(string resPath)
|
|
|
+ {
|
|
|
+ preDrawDic.TryGetValue(resPath, out var list);
|
|
|
+ if(list != null && list.Count > 0)
|
|
|
+ {
|
|
|
+ int index = list.Count - 1;
|
|
|
+ var t = list[index];
|
|
|
+ list.RemoveAt(index);
|
|
|
+ Restore(t);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|