@@ -9,6 +9,11 @@ namespace GFGGame
public int actionId;
public List<int> itemList = new List<int>();
+ public bool IsNew
+ {
+ get { return this.suitId <= 0 && this.actionId <= 0 && this.itemList.Count <= 0 && this.bgId <= 0; }
+ }
+
public DressUpData Clone()
{
var dressUpData = new DressUpData();
@@ -87,7 +87,7 @@ namespace GFGGame
_showSceneType = showSceneType;
_showBg = showBg;
_roleObj = roleObj;
- if(_dressUpData.suitId <= 0 && _dressUpData.actionId <= 0 && _dressUpData.itemList.Count <= 0 && _dressUpData.bgId <= 0)
+ if(_dressUpData.IsNew)
PutOnDefaultDressUpData();
}