コード例 #1
0
        void Awake()
        {
            if (!MenuMB.Instance)
            {
                MenuMB.Instance = this;
                DontDestroyOnLoad(this.gameObject);
            }
            else
            {
                DestroyImmediate(this.gameObject);
            }

            alpha = 0f;
        }
コード例 #2
0
ファイル: MenuMB.cs プロジェクト: Victorma/Compluaventuras
 void Awake()
 {
     MenuMB.instance = this;
     alpha           = 0f;
 }