123456789101112131415161718192021222324252627282930313233343536 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.SceneManagement;
- public class MainManager : MonoBehaviour
- {
- public GameObject raw;
- public void LoadScene(string msg)
- {
- GetTexture2D.urlbase = msg;
- if (msg.Contains("169"))
- {
- if(!msg.Contains("green"))
- SceneManager.LoadSceneAsync(1);
- else
- {
- SceneManager.LoadSceneAsync(3);
- }
- }
- else
- {
- if (!msg.Contains("green"))
- SceneManager.LoadSceneAsync(2);
- else
- {
- SceneManager.LoadSceneAsync(4);
- }
- }
- raw.SetActive(true);
- }
- }
|