Exemple #1
0
 private void Awake()
 {
     Instance = this;
     Application.targetFrameRate = 60;
     gameObject.AddComponent <MG_UIManager>().Init(
         transform.GetChild(1),
         transform.GetChild(2),
         transform.GetChild(3)
         );
     MG_Config = Resources.Load <ScriptableObject>("MG_ConfigAssets/MG_Dice_Config") as MG_Config;
     gameObject.AddComponent <MG_AudioManager>().Init(transform.Find("MG_AudioRoot").gameObject);
 }
Exemple #2
0
        private void Awake()
        {
            Instance = this;
            Application.targetFrameRate = 60;
#if UNITY_EDITOR
            Debug.unityLogger.logEnabled = true;
#else
            Debug.unityLogger.logEnabled = false;
#endif
            gameObject.AddComponent <MG_UIManager>().Init(
                transform.GetChild(1),
                transform.GetChild(2),
                transform.GetChild(3)
                );
            img_BG    = transform.GetChild(0).GetComponent <Image>();
            MG_Config = Resources.Load <ScriptableObject>("MG_ConfigAssets/MG_Dice_Config") as MG_Config;
            gameObject.AddComponent <MG_AudioManager>().Init(transform.Find("MG_AudioRoot").gameObject);
        }