Beispiel #1
0
        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);
        }
Beispiel #2
0
 private static GameObject GetGimmickIconGameObject()
 {
     if (null == MonsterIconFactory.partsPool.GimmickIcon)
     {
         MonsterIconFactory.partsPool.SetGimmickIcon(MonsterIconFactory.LoadPrefab("UI/Common/MonsterIcon/MonsterIconGimmick"));
     }
     return(MonsterIconFactory.partsPool.GimmickIcon);
 }
Beispiel #3
0
 private static GameObject GetPlayerNoGameObject()
 {
     if (null == MonsterIconFactory.partsPool.PlayerNo)
     {
         MonsterIconFactory.partsPool.SetPlayerNo(MonsterIconFactory.LoadPrefab("UI/Common/MonsterIcon/MonsterIconPlayerNo"));
     }
     return(MonsterIconFactory.partsPool.PlayerNo);
 }
Beispiel #4
0
 private static GameObject GetMedalGameObject()
 {
     if (null == MonsterIconFactory.partsPool.Medal)
     {
         MonsterIconFactory.partsPool.SetMedal(MonsterIconFactory.LoadPrefab("UI/Common/MonsterIcon/MonsterIconMedal"));
     }
     return(MonsterIconFactory.partsPool.Medal);
 }
Beispiel #5
0
 private static GameObject GetMessageGameObject()
 {
     if (null == MonsterIconFactory.partsPool.Message)
     {
         MonsterIconFactory.partsPool.SetMessage(MonsterIconFactory.LoadPrefab("UI/Common/MonsterIcon/MonsterIconText"));
     }
     return(MonsterIconFactory.partsPool.Message);
 }
Beispiel #6
0
 private static GameObject GetThumbnailGameObject()
 {
     if (null == MonsterIconFactory.partsPool.Thumbnail)
     {
         MonsterIconFactory.partsPool.SetThumbnail(MonsterIconFactory.LoadPrefab("UI/Common/MonsterIcon/MonsterThumbnail"));
     }
     return(MonsterIconFactory.partsPool.Thumbnail);
 }