본문 바로가기
프로그래밍/Unity

[Unity3D] Singleton

by neive 2018. 1. 3.
728x90


using System.Collections;

using System.Collections.Generic;

using UnityEngine;


public class YourClassName : Singleton<YourClassName> {


    public YourClassName()

            : base(false, true)

    {


    }


    protected override void OnDestroy()

    {

        base.OnDestroy();

    }


}

728x90

댓글