Random picture picker

I’m new to Unity and what i’m trying to do is have a button which will keep going through several pictures then pick one like a slot machine. Depending on what picture you get the game will let you do something different. For example if you get a movement picture lets you move, if you get a attacking picture you can attack. Not too sure where to start with this.

Firstly you might need to think of more like random ‘card’ picker rather than just a picture or texture. Semantics I know but it’s good to think about it as game concept rather than a literal asset concept.

So with that said how about creating this:

using System.Collections.Generic;
using UnityEngine;


public enum GameCardType
{
	MOVEMENT,
	OTHER_TYPES_HERE,
	ENUM_COUNT
}



public class GameCardGame : MonoBehaviour
{
	public bool m_playGame;
	public Texture2D[] m_cardTextures; // assign matching textures to this property
	public GUITexture m_cardGUITexture;
	
	//Assigned random card
	private GameCardType m_curType;
	
	//Picks a random card type
	static GameCardType GetRandom()
	{
		return (GameCardType)Random.Range(0, (int)GameCardType.ENUM_COUNT);
	}
	
	//Movement code
	void DoMovementType()
	{
		Debug.Log("Movement code!");
	}
	
	void DoOtherType()
	{
		Debug.Log("Other type code!");
		
	}
	
	//Plays the game
	void PlayGame()	
	{
		// Get a random card
		m_curType = GetRandom();
		
		//if not null and texture exists - assign the selected type to GUITexture
		if(m_cardTextures != null && (int)m_curType < m_cardTextures.Length
		   && m_cardGUITexture != null)
			m_cardGUITexture.texture = m_cardTextures[(int)m_curType];
		
		
		// Do random card logic
		switch (m_curType)
		{
			case(GameCardType.MOVEMENT):
				DoMovementType();
				break;
			case(GameCardType.OTHER_TYPES_HERE):
				DoOtherType();
				break;
			default:
				Debug.LogWarning("No method specified for card type!");
				break;
		}
		
	}
	
	
	//Update loop to catch the m_playGame bool trigger
	void Update()
	{
		if(m_playGame)
			PlayGame();
		m_playGame = false;
	}

}