12345678910111213141516171819202122232425262728293031 |
- using DG.Tweening;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class TestLogo : MonoBehaviour
- {
- public Material background;
- public Image logo;
- public GameObject map;
- public float times;
-
- void Start()
- {
- // AudioListener.volume = 0;
- Invoke("Gradient", 3f);
-
- }
- void Gradient()
- {
- // AudioListener.volume = 1;
- logo.DOColor(new Color(logo.color.r, logo.color.g, logo.color.b, 0), times);
- background.DOColor(new Color(logo.color.r, logo.color.g, logo.color.b, 0), times);
- map.SetActive(true);
- }
- }
|