Exemplo n.º 1
0
    private Image loadImage;                 // Image of the load screen

    private void Awake()
    {
        // Singleton logic:
        if (Instance == null)
        {
            Instance = this;
            // Don't destroy the loading screen while switching scenes:
        }
        else
        {
            Destroy(gameObject);
            return;
        }
    }
Exemplo n.º 2
0
 private void Start()
 {
     ls = FindObjectOfType <SC_LoadingScreen>();
 }