2026-01-09 08:45:22 +03:00

29 lines
421 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Chanks : MonoBehaviour
{
public Sprite[] imgs;
public int Index = 0;
void ChangeImgs()
{
if(imgs.Length > Index)
{
GetComponent<SpriteRenderer>().sprite = imgs[Index];
}
}
// Update is called once per frame
void Update()
{
ChangeImgs();
}
}