|
@@ -7,13 +7,13 @@ namespace GFGGame
|
|
|
{
|
|
|
private GameObject _gameObject;
|
|
|
private GoWrapper _wrapper;
|
|
|
- public bool isDisposed;
|
|
|
+ public bool Released;
|
|
|
|
|
|
|
|
|
public void Reset(GGraph holder, string uiName, string resName, float scale = 100, EffectUIType effectUIType = EffectUIType.UI )
|
|
|
{
|
|
|
- if (!isDisposed) Dispose();
|
|
|
- isDisposed = false;
|
|
|
+ if (!Released) Release();
|
|
|
+ Released = false;
|
|
|
string resPath;
|
|
|
switch(effectUIType)
|
|
|
{
|
|
@@ -35,9 +35,9 @@ namespace GFGGame
|
|
|
}
|
|
|
|
|
|
|
|
|
- public void Dispose()
|
|
|
+ public void Release()
|
|
|
{
|
|
|
- isDisposed = true;
|
|
|
+ Released = true;
|
|
|
if (_gameObject != null)
|
|
|
{
|
|
|
PrefabManager.Instance.Restore(_gameObject);
|