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; }
void Awake() { if (_instance == null) _instance = this; else Destroy(gameObject); }