コード例 #1
0
        // BG배경셋팅 호출
        private void LoadBgSetting()
        {
            var bgSettingPath = $"StageBg/ArchiveLobby/ArchiveLobby.setting";

            var bgSettingObj = ResourceManager.Instance.Load <GameObject>(bgSettingPath, false);

            if (bgSettingObj != null)
            {
                _bgSetting = bgSettingObj.GetComponent <BgSetting>();
                if (_bgSetting != null)
                {
                    _bgSetting.Apply();
                }
            }
        }
コード例 #2
0
 /// <summary>スレッドを終了して画面を閉じる
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnCancel_Click(object sender, EventArgs e)
 {
     BgSetting.CancelAsync();
     Dispose();
 }