コード例 #1
0
 void Awake()
 {
     _BookData   = GameObject.Find("Scripts").GetComponent <BookData>();
     _GameData   = GameObject.Find("Scripts").GetComponent <GameData>();
     _ImagesMove = GameObject.Find("Scripts").GetComponent <ImagesMove>();
     _ImageMove  = GameObject.Find("Scripts").GetComponent <ImageMove>();
 }
    //Output the new state of the Toggle into Text
    public void ToggleValueChanged(Toggle change)
    {
        //m_Text.text = "New Value : " + m_Toggle.isOn;
        Nem = em_Toggle.isOn;

        ImageMove nEM = new ImageMove();
        nEM.SetEmail(Nem);
    }
コード例 #3
0
 void Awake()
 {
     _ImageMove   = GameObject.Find("Scripts").GetComponent <ImageMove>();
     _ImagesMove  = GameObject.Find("Scripts").GetComponent <ImagesMove>();
     _GameData    = GameObject.Find("Scripts").GetComponent <GameData>();
     _ButtonClick = GameObject.Find("Scripts").GetComponent <ButtonClick>();
     bookState    = BookState.none;
 }
コード例 #4
0
    //Output the new state of the Toggle into Text
    public void ToggleValueChanged(Toggle change)
    {
        //m_Text.text = "New Value : " + m_Toggle.isOn;
        Npr = pr_Toggle.isOn;

        ImageMove nPR = new ImageMove();

        nPR.SetPrint(Npr);
    }
    //Output the new state of the Toggle into Text
    public void ToggleValueChanged(Toggle change)
    {
        //m_Text.text = "New Value : " + m_Toggle.isOn;
        Nfb = fb_Toggle.isOn;

        ImageMove nFB = new ImageMove();

        nFB.SetFacebook(Nfb);
    }
コード例 #6
0
        private void MoveImage(ImageMove direction)
        {
            if (_files.Count > 0 && !_sending)
            {
                switch (direction)
                {
                case ImageMove.Next:
                    _currentIndex = Math.Min(_currentIndex + 1, _files.Count - 1);
                    break;

                case ImageMove.Previous:
                    _currentIndex = Math.Max(_currentIndex - 1, 0);
                    break;

                default:
                    throw new ArgumentOutOfRangeException(nameof(direction), direction, null);
                }
                _currentFile = _files[_currentIndex];
                Image.SetImageURI(_currentFile.Uri);
                ImageText.Text = $"{_currentFile.Name} ({_currentIndex + 1}/{_files.Count})";
            }
        }