|
@@ -8,9 +8,9 @@ using ET;
|
|
|
|
|
|
namespace GFGGame
|
|
|
{
|
|
|
- public class SuitView : BaseWindow
|
|
|
+ public class ClothingView : BaseWindow
|
|
|
{
|
|
|
- private UI_SuitUI _ui;
|
|
|
+ private UI_ClothingUI _ui;
|
|
|
|
|
|
private GameObject _scenePrefab;
|
|
|
private GameObject _sceneObject;
|
|
@@ -32,14 +32,25 @@ namespace GFGGame
|
|
|
{
|
|
|
|
|
|
base.Dispose();
|
|
|
+ if (_sceneObject != null)
|
|
|
+ {
|
|
|
+ GameObject.Destroy(_sceneObject);
|
|
|
+ _sceneObject = null;
|
|
|
+ _wrapper = null;
|
|
|
+ _scenePrefab = null;
|
|
|
+ }
|
|
|
+ SceneController.DestroyObjectFromView(_gameobject1);
|
|
|
+ _propertyList.Clear();
|
|
|
+ _addPropertyList.Clear();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
|
protected override void OnInit()
|
|
|
{
|
|
|
base.OnInit();
|
|
|
- packageName = UI_SuitUI.PACKAGE_NAME;
|
|
|
- _ui = UI_SuitUI.Create();
|
|
|
+ packageName = UI_ClothingUI.PACKAGE_NAME;
|
|
|
+ _ui = UI_ClothingUI.Create();
|
|
|
this.viewCom = _ui.target;
|
|
|
// this.viewCom.Center();
|
|
|
isfullScreen = true;
|
|
@@ -113,7 +124,7 @@ namespace GFGGame
|
|
|
}
|
|
|
private void OnClickBtnBack()
|
|
|
{
|
|
|
- ViewManager.GoBackFrom(typeof(SuitView).FullName);
|
|
|
+ ViewManager.GoBackFrom(typeof(ClothingView).FullName);
|
|
|
}
|
|
|
private void OnTabChange()
|
|
|
{
|
|
@@ -362,7 +373,7 @@ namespace GFGGame
|
|
|
{
|
|
|
int itemId = (int)(context.data as GComponent).data;
|
|
|
// GoodsItemTipsController.ShowItemTips(itemId);
|
|
|
- ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { itemId, new object[] { typeof(SuitView).FullName, this.viewData } });
|
|
|
+ ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { itemId, new object[] { typeof(ClothingView).FullName, this.viewData } });
|
|
|
}
|
|
|
|
|
|
private async void OnClickBtnRenew()
|