public static MonsterIcon Copy(MonsterIcon icon) { MonsterIcon result = new MonsterIcon(); icon.Copy(ref result); return(result); }
public void Copy(ref MonsterIcon dst) { dst.Thumbnail = UnityEngine.Object.Instantiate <MonsterThumbnail>(this.Thumbnail); dst.iconRootTransform = dst.Thumbnail.transform; GameObject gameObject = dst.Thumbnail.gameObject; if (null != this.Message) { dst.Message = gameObject.GetComponentInChildren <MonsterIconText>(); } if (null != this.New) { dst.New = gameObject.GetComponentInChildren <MonsterIconNew>(); } if (null != this.Lock) { dst.Lock = gameObject.GetComponentInChildren <MonsterIconLock>(); } if (null != this.Arousal) { dst.Arousal = gameObject.GetComponentInChildren <MonsterIconArousal>(); } if (null != this.Medal) { this.Medal = gameObject.GetComponentInChildren <MonsterIconMedal>(); } if (null != this.PlayerNo) { dst.PlayerNo = gameObject.GetComponentInChildren <MonsterIconPlayerNo>(); } if (null != this.Gimmick) { dst.Gimmick = gameObject.GetComponentInChildren <MonsterIconGimmick>(); } }
public static MonsterIcon CreateIcon(int partsFlag) { MonsterIcon monsterIcon = new MonsterIcon(); monsterIcon.SetThumbnail(MonsterIconFactory.GetThumbnailGameObject()); if (0 < (1 & partsFlag)) { monsterIcon.SetMessage(MonsterIconFactory.GetMessageGameObject()); } if (0 < (2 & partsFlag)) { monsterIcon.SetNewIcon(MonsterIconFactory.GetNewIconGameObject()); } if (0 < (4 & partsFlag)) { monsterIcon.SetLockIcon(MonsterIconFactory.GetLockIconGameObject()); } if (0 < (8 & partsFlag)) { monsterIcon.SetArousal(MonsterIconFactory.GetArousalGameObject()); } if (0 < (16 & partsFlag)) { monsterIcon.SetMedal(MonsterIconFactory.GetMedalGameObject()); } if (0 < (32 & partsFlag)) { monsterIcon.SetPlayerNo(MonsterIconFactory.GetPlayerNoGameObject()); } if (0 < (64 & partsFlag)) { monsterIcon.SetGimmickIcon(MonsterIconFactory.GetGimmickIconGameObject()); } return(monsterIcon); }