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

            alpha = 0f;
        }
示例#2
0
 void Awake()
 {
     MenuMB.instance = this;
     alpha           = 0f;
 }