Skip to content

Instantly share code, notes, and snippets.

@Toby583
Toby583 / Numbers.cs
Created February 17, 2026 12:41
Arrays with Unity Game Object to change look of sprite
using UnityEngine;
public class Numbers : MonoBehaviour
{
private SpriteRenderer sr;
public Sprite[] numberSprites;
private int index = 0;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{