예제 #1
0
 public static CaptionRolling GetInstance()
 {
     if (_instance == null)
     {
         GameObject gO = GameObject.Find("CaptionRolling");
         if (gO == null) gO = new GameObject("CaptionRolling");
         _instance = gO.AddComponent<CaptionRolling>();
     }
     return _instance;
 }
예제 #2
0
 void Awake()
 {
     if (_instance == null) _instance = this;
     else Destroy(gameObject);
 }