void Awake() { _gallery = gameObject.GetComponent <OutrunGallery> (); Debug.Assert(_gallery != null, "Gallery is missing"); _timer = _delay; }
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); }
void Awake() { _gallery = gameObject.GetComponent <OutrunGallery> (); }