GitHubPage로 이사

1 minute read

깃허브 페이지 시작

깃허브에 익숙해지기 위해 블로그도 이사를 하게 됐다.

깃허브를 사용하면서…

네이버블로그를 쓰던 나는 소스코드를 남기는게 많이 불편했다.
깃페이지는 아래처럼 마크다운 문법에 따라 키워드만 입력해주면 코드를 보기쉽게 포스팅 할 수 있었다.

c#언어 코드 테스트


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.UI;
using static UIQuestList;

public class UIQuestBox : UIControl
{
    public const string PrefabPath = "UIQuestBox";
    public static UIQuestBox Create(int top = 320)
    {
        if (singleton == null)
        {
            Transform parent = FindBottomParent();
            GameObject go = Instantiate(MtAssetBundles.Load("prefab/ui/quest/" + PrefabPath)) as GameObject;

            singleton = Create<UIQuestBox>(go, parent);
            singleton.InitializeOnce();
        }

        singleton.transform.SetParent(UIKingdomInfo.Get().uiQuestBoxParentTrs);

        RectTransform rect = singleton.GetComponent<RectTransform>();
        rect.anchoredPosition = Vector2.zero;//new Vector2(10, top);
        singleton.transform.SetAsFirstSibling();

        //singleton.transform.SetParent(FindHeaderParent());

        //singleton.questList = AccountInfo.instance.questList;

        return singleton;
    }

    class QuestIDXComparer : IComparer, IComparer<MtQuest>
    {
        public int Compare(MtQuest x, MtQuest y)
        {
            return x.IDX.CompareTo(y.IDX);
        }

        public int Compare(object x, object y)
        {
            return Compare((MtQuest)x, (MtQuest)y);
        }
    }

    private static UIQuestBox singleton;

    //PlayerPref에 저장해둘 리스트
    private List<int> visibleQuestList = null;
    //AccountInfo에서 받아온 보유중인 퀘스트리스트
    private Dictionary<int, MtQuest> myQuestDic = new Dictionary<int, MtQuest>();
    //필드정보창에 보여줄 퀘스트 리스트
    private Dictionary<int, MtQuest> visibleQuestDic = new Dictionary<int, MtQuest>();

    // 손가락으로 가르킴이 예약된 퀘스트 IDX
    private List<int> pointingReserved = new List<int>();

    public Transform gridParent = null;

    [SerializeField] private Image backPanelImg = null;
    [SerializeField] private Animator questBoxAnimator = null;

    [SerializeField] private GameObject zoomButton = null;
    [SerializeField] private Transform uiArrowCollidie = null;

    private int traceSubQuestIDX = -1;

    public static UIQuestBox Get()
    {
        return singleton;
    }

    private void InitializeOnce()
    {
        ExtractVisibleQuestFromAcceptedQuests();
        Refresh();
    }
}

마무리

이직을 준비하고 있는 시점에 개발환경을 조금 바꿔보려 M1맥북을 사들이고
이리 삽질 저리 삽질 +_+ 하며 깃허브페이즈를 구축하느라 혼났다.
고생하고 노력한만큼 성취감과 만족감은 크다. 이제 꾸준하게 로그를 남겨야겠다.

Tags:

Categories:

Updated: