private void Start() { button_GetPermission.onClick.AddListener(GetPermission); button_StartService.onClick.AddListener(StartService); button_StopService.onClick.AddListener(StopService); button_ChangeBackground.onClick.AddListener(ChangeBackground); button_ShowNavigator.onClick.AddListener(ShowNavigator); EZFloatingWindow.onMoveEvent += (x, y) => EZFloatingWindow.SetText(string.Format("{0}, {1}", x, y)); }
private void ChangeBackground() { currentIndex++; currentIndex = currentIndex % textures.Length; EZFloatingWindow.SetBackground(textures[currentIndex].EncodeToPNG()); }
private void StopService() { EZFloatingWindow.Disable(); }
private void StartService() { EZFloatingWindow.Enable(); }
private void GetPermission() { EZFloatingWindow.GetPermission(); }