malé úpravy data transfer minigame
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -66,7 +66,7 @@ Material:
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _Glossiness: 0.567
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
@@ -78,7 +78,7 @@ Material:
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 0.43400002, g: 0.43400002, b: 0.43400002, a: 1}
|
||||
- _Color: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
|
||||
30
Assets/Scripts/data_transfer/RevealObjectCopy.cs
Normal file
30
Assets/Scripts/data_transfer/RevealObjectCopy.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class RevealObjectCopy : 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/data_transfer/RevealObjectCopy.cs.meta
Normal file
2
Assets/Scripts/data_transfer/RevealObjectCopy.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e02367e9acf49bc4ebb01bb44f47d312
|
||||
Reference in New Issue
Block a user