/// <summary> /// Awake function from Unity's MonoBehavior /// </summary> /// <returns>void</returns> private void Awake() { if (Instance != null) { Debug.LogWarning("Several instance of NativeDatePicker"); return; } Instance = this; }
/// <summary> /// OnDestroy function from Unity's Monoheaviour /// </summary> private void OnDestroy() { Instance = null; }