본문 바로가기
NOTE/IT Information

[BLOG] 소스코드 보기좋게 나타내기

by DevAthena 2016. 10. 19.

Syntaxhighlighter 라는것을 적용해서 ▼와 같이 나타낼 수 있다.

public class Singleton : MonoBehaviour where T : MonoBehaviour
{
    private static T _instance = null;

    public static T Instance
    {
        get
        {
            if (_instance == null)
            {
                _instance = (T)FindObjectOfType(typeof(T)) as T;
                if (_instance == null)
                {
                    Debug.Log("Singleton object null");
                }
            }
            return _instance;
        }
    }
}



잘 설명된 블로그.

http://sometimes-n.tistory.com/5

 

기본 다운로드 후 파일올리고 적용.

후에 입맛에 맞게 고쳐봐야겠다.