void Awake()
        {
            InitializeButtons();
            buttonClickAudio  = GetComponent <AudioSource>();
            settingObjectPool = GetComponent <AndroidWidget_ObjectPool>();


            controllButtons = GetComponentsInChildren <AndroidWidget_ControlButton>(true);
            animator        = GetComponent <Animator>();
            GetComponent <Canvas>().worldCamera = Camera.main;
        }
示例#2
0
        void Start()
        {
            ButtonInitialize();
            buttonClickAudio  = GetComponent <AudioSource>();
            settingObjectPool = GetComponent <AndroidWidget_ObjectPool>();
            animator          = GetComponent <Animator>();
            GetComponent <Canvas>().worldCamera = Camera.main;

            if (!alwaysActive)
            {
                animator.Play("HideWidget", -1, 1);
            }

            if (BhapticsAndroidManager.Instance != null)
            {
                BhapticsAndroidManager.Instance.RefreshUIAddListener(Refresh);
            }
        }