Groups
Sign in
Groups
宴ユーザーグループ
Conversations
About
Send feedback
Help
シナリオの開始位置を変更
28 views
Skip to first unread message
Myname
unread,
Jan 12, 2023, 8:27:38 AM
1/12/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 宴ユーザーグループ
・宴のバージョン:3.11.8
・Unityのバージョン:2021.3.16f1
・OSバージョン:Windows10
・Unityの習熟度:初心者
シナリオの開始位置を変更させる方法があれば教えていただきたいです。
タイトル画面にて、
ボタン1が押されたらシナリオ1を開始
ボタン2が押されたらシナリオ2を開始
というような仕様にしたいと考えております。
ボタンを押した際の処理を
mainGame.OpenStartGame();とすると
必ず同じ場所から開始になってしまいますが特定の位置から開始出来る方法があれば教えていただきたいです。
よろしくお願い致します。
マッドネスラボ
unread,
Jan 12, 2023, 11:46:29 AM
1/12/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 宴ユーザーグループ
UtageUguiTitle.csコンポーネントには、
OnTapStartLabel(string label) という、指定したシナリオラベルからゲームを開始させるメソッドが用意されています。
なので、ボタンを押したときのイベント登録をこちらに切り替えるようにようにして、
引き数の文字列(画像のシナリオラベルという部分)に、シナリオ2の冒頭のシナリオラベルを指定するようにしてください。
2023年1月12日木曜日 22:27:38 UTC+9 Myname:
マッドネスラボ
unread,
Jan 12, 2023, 11:56:12 AM
1/12/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 宴ユーザーグループ
自作する場合は、
mainGame.OpenStartLabel(label);
と処理するようにしてください。
(OnTapStartLabelの内部も同じです)
2023年1月13日金曜日 1:46:29 UTC+9 マッドネスラボ:
Reply all
Reply to author
Forward
0 new messages