Esempio n. 1
0
 void MakeInstance()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
    void Awake()
    {
        //muteMusic();
        //sController = this;
        if (s == null)
        {
            s = this;
        }
        else if (s != this)
        {
            Destroy(gameObject);
        }
//        DontDestroyOnLoad(gameObject);
    }