Ejemplo n.º 1
0
 private void Awake()
 {
     if (s_Instance == null)
     {
         s_Instance = this;
         //DontDestroyOnLoad(this.gameObject);
     }
     //else
     //Destroy(gameObject);
 }
Ejemplo n.º 2
0
    private void Awake()
    {
        if (s_Instance == null)
        {
            s_Instance = this;
            DontDestroyOnLoad(this.gameObject);
        }
        else
        {
            Destroy(gameObject);
        }

        m_Fader = GetComponentInChildren <Image>();
    }
Ejemplo n.º 3
0
 private void Start()
 {
     scene          = FindObjectOfType <Sceneloader>();
     scoreText.text = score.ToString();
 }