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 void SetMedal(GameObject go) { this.Medal = go.GetComponent <MonsterIconMedal>(); global::Debug.Assert(null != this.Medal, "Component Not Found : MonsterIconMedal プレハブを確認してください"); MonsterIconTransform.AttachParts(this.iconRootTransform, go); }