Example #1
0
        public bool enableToast = true;     //Display Android Toast on/off


        protected void Awake()
        {
            //Register itself when it is empty
            if (OnVolumeCalled.GetPersistentEventCount() == 0)
            {
#if UNITY_EDITOR
                Debug.Log("OnVolumeCalled added DisplayVolume (auto)");
#endif
                OnVolumeCalled.AddListener(DisplayVolume);
            }
        }
        public bool enableToast = true;     //Display Android Toast on/off     //Toast の表示可否


        protected void Awake()
        {
            //Register itself when it is empty (* Note that it is not displayed in the inspector).
            //独自登録されてないとき、自身を登録する(※インスペクタには表示されないので注意)
            if (OnVolumeCalled.GetPersistentEventCount() == 0)
            {
#if UNITY_EDITOR
                Debug.Log("OnVolumeCalled added DisplayVolume (auto)");
#endif
                OnVolumeCalled.AddListener(DisplayVolume);
            }
        }