Disable and reanble through script face-in image

This commit is contained in:
BOTAlex 2024-02-09 02:24:02 +01:00
parent 7ad364eb7a
commit 06c6c578a2
2 changed files with 6 additions and 0 deletions

View File

@ -4268,6 +4268,10 @@ PrefabInstance:
propertyPath: m_Name propertyPath: m_Name
value: UI value: UI
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7320843173059553054, guid: 48e0e53445d42474895d37a321c39d1c, type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9075173710402410956, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} - target: {fileID: 9075173710402410956, guid: 48e0e53445d42474895d37a321c39d1c, type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: -9.998047 value: -9.998047

View File

@ -1,5 +1,6 @@
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
@ -16,6 +17,7 @@ public class Wait2SecondsToShow : MonoBehaviour
void StartFade() void StartFade()
{ {
canvas.enabled = true;
StartCoroutine(FadeOut(2f)); StartCoroutine(FadeOut(2f));
} }