Skip to content

Commit

Permalink
v1.0.54 release
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxiegame committed May 24, 2023
1 parent 8680686 commit 936b963
Show file tree
Hide file tree
Showing 91 changed files with 2,955 additions and 1,101 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Id": "",
"Version": "v1.0.44",
"Version": "v1.0.54",
"Type": 0,
"AccessRight": 0,
"DownloadUrl": "",
Expand All @@ -11,10 +11,10 @@
],
"DocUrl": "https://liangxiegame.com",
"Readme": {
"version": "v1.0.44",
"content": "CodeGenKit 支持 OtherBinds\nFSMKit 支持 OnStateChanged 回调",
"version": "v1.0.54",
"content": "EventKit:新增一堆事件触发器",
"author": "liangxie",
"date": "2023 年 05 月 1115:46",
"date": "2023 年 05 月 2418:07",
"PackageId": ""
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ private void Awake()
var btnVoiceOn = transform.Find("BtnVoiceOn").GetComponent<Button>();
var btnVoiceOff = transform.Find("BtnVoiceOff").GetComponent<Button>();

var btnStopAllSound = transform.Find("BtnStopAllSounds").GetComponent<Button>();

var musicVolumeSlider = transform.Find("MusicVolume").GetComponent<Slider>();
var voiceVolumeSlider = transform.Find("VoiceVolume").GetComponent<Slider>();
var soundVolumeSlider = transform.Find("SoundVolume").GetComponent<Slider>();
Expand All @@ -42,6 +44,11 @@ private void Awake()
btnVoiceOn.onClick.AddListener(() => { AudioKit.Settings.IsVoiceOn.Value = true; });

btnVoiceOff.onClick.AddListener(() => { AudioKit.Settings.IsVoiceOn.Value = false; });

btnStopAllSound.onClick.AddListener(() =>
{
AudioKit.StopAllSound();
});


AudioKit.Settings.MusicVolume.RegisterWithInitValue(v => musicVolumeSlider.value = v);
Expand Down

0 comments on commit 936b963

Please sign in to comment.