Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Last active May 1, 2022 04:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/8aff5f82196b5dece31f55d53deff724 to your computer and use it in GitHub Desktop.
Save flushpot1125/8aff5f82196b5dece31f55d53deff724 to your computer and use it in GitHub Desktop.
//「せってい」ボタンを取得
let GameTitleButton_Setting = GameTitleGUITexture.getControlByName("Button_setting");
//「せってい」ボタンを押したときの画面変化
GameTitleButton_Setting.onPointerClickObservable.add( () => {
GameSettingBackground.isVisible = true;
GameTitleBackground.isVisible = false;
});
//「はじめにもどる」ボタンを取得
let GameSettingButton_Return = GameSettingGUITexture.getControlByName("Button_return");
//「はじめにもどる」ボタンを押したときの画面変化
GameSettingButton_Return.onPointerClickObservable.add( () => {
GameSettingBackground.isVisible = false;
GameTitleBackground.isVisible = true;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment