コード例 #1
0
        //----------------------------------------------------------------------------------------------------
        #region Mono Behaviour Function

        void Awake()
        {
            if (Instance == null)
            {
                Instance = this;
                DontDestroyOnLoad(gameObject);
            }
            else
            {
                Destroy(gameObject);
            }
        }
コード例 #2
0
 private void OnEnable()
 {
     Reference = (UniversalAdsController)target;
 }