KostraDataTransfer

This commit is contained in:
2026-04-26 21:17:38 +02:00
parent bca7c930c2
commit 3c885df783
16 changed files with 6116 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RevealObjects : MonoBehaviour
{
public List<GameObject> objects; // seznam objektů
public float delay = 1f; // čas mezi odkrýváním
void Start()
{
// nejdřív všechny skryjeme
foreach (GameObject obj in objects)
{
obj.SetActive(false);
}
// spustíme postupné odkrývání
StartCoroutine(Reveal());
}
IEnumerator Reveal()
{
foreach (GameObject obj in objects)
{
yield return new WaitForSeconds(delay);
obj.SetActive(true);
}
}
}