コード例 #1
0
    void Awake()
    {
        _gallery = gameObject.GetComponent <OutrunGallery> ();
        Debug.Assert(_gallery != null, "Gallery is missing");

        _timer = _delay;
    }
コード例 #2
0
    void Awake()
    {
        _gallery = gameObject.GetComponent <OutrunGallery> ();
        Debug.Assert(_gallery != null, "Gallery is missing");

        _autoplay = gameObject.GetComponent <GalleryAutoplay> ();

        _nextButton.OnClick += OnNextImage;
        _prevButton.OnClick += OnPrevImage;

        InteractiveItem ii = gameObject.GetComponent <InteractiveItem> ();

        if (ii != null)
        {
            ii.OnOver += OnOver;
            ii.OnOut  += OnOut;
        }

        _description.SetActive(false);
    }
コード例 #3
0
 void Awake()
 {
     _gallery = gameObject.GetComponent <OutrunGallery> ();
 }