예제 #1
0
        /// <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;
        }
예제 #2
0
 /// <summary>
 /// OnDestroy function from Unity's Monoheaviour
 /// </summary>
 private void OnDestroy()
 {
     Instance = null;
 }