private int _currentSlideIndex = 0; // Slide index private void Awake() { // Get UINavigation component _uiNavigation = GetComponent <UINavigation>(); // Add on click listeners to UIButtons //_uiButtonNavigation.Buttons[0].onClick.AddListener(() => OnButtonTestLevelClicked(_uiButtonNavigation.Buttons[0])); //_uiButtonNavigation.Buttons[1].onClick.AddListener(() => OnButtonQuitClicked(_uiButtonNavigation.Buttons[1])); }
private UINavigation _uiNavigation = null; // Reference to the UINavigation component private void Awake() { // Get UINavigation component _uiNavigation = GetComponent <UINavigation>(); // Add on click listeners to buttons //_uiButtonNavigation.Buttons[0].onClick.AddListener(() => OnButtonResumeClicked(_uiButtonNavigation.Buttons[0])); //_uiButtonNavigation.Buttons[1].onClick.AddListener(() => OnButtonMenuClicked(_uiButtonNavigation.Buttons[1])); //_uiButtonNavigation.Buttons[2].onClick.AddListener(() => OnButtonQuitClicked(_uiButtonNavigation.Buttons[2])); }