void Awake()
        {
            if (!MenuMB.Instance)
            {
                MenuMB.Instance = this;
                DontDestroyOnLoad(this.gameObject);
            }
            else
            {
                DestroyImmediate(this.gameObject);
            }

            alpha = 0f;
        }
Ejemplo n.º 2
0
 void Awake()
 {
     MenuMB.instance = this;
     alpha           = 0f;
 }