private void Start() { if (!_isFirstLoad) { return; } _isFirstLoad = false; VibratorManager.BindEvent(UpdateInfo); }
private void Awake() { btn = GetComponent <Button>(); btnImg = GetComponent <Image>(); if (VibratorManager.IsiPadOriPod()) { gameObject.SetActive(false); } else { btn.GetComponent <Button>().onClick.AddListener(OnClick); _isFirstLoad = true; } }
private void OnClick() { VibratorManager.Switch(); VibratorManager.Trigger(HapticTypes.Selection); }