Hi. Firstly, thanks so much to whoever helps.
I am creating an app that lets you train for different sports at home and revolves around drills and the matching colours on the app. In the settings, the player can select a colour to use. The way I would like it to work is that it cycles through the array of colours when you click on the colour in settings. My question is, how do I get the colours to cycles through the array, setting the current colour to the variable colour1?
I have attached some photos.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ColourPicker : MonoBehaviour
{
public Color[] colourPalette;
private Color currentSelectedColour;
public Settings settings;
private Color colour1;
void Start()
{
colour1 = settings.colour1;
}
public void ChangeColourOne()][1]
{
// Cycle through to the next colour in the array and Set as colour1
}
}