More Related Content
Similar to Everyplayで遊んでみよう2
Similar to Everyplayで遊んでみよう2 (20)
Everyplayで遊んでみよう2
- 12. 自動でLIVE実況(APIの使用)
Check Permission
UNITY > Open Assets/UnityChan2D/Demo/Scripts/StartController.cs
Apply the patch here: https://gist.github.com/domaemon/592a229632bf747b7ec8
- 13. 自動でLIVE実況(APIの使用)
Start Facecam Session
UNITY > Open Assets/UnityChan2D/Demo/Scripts/Demo.cs
Apply the patch here: https://gist.github.com/domaemon/9929d1ed92b6837f030a
- 18. LIVE実況うながしUX
LiveCommentaryButtons.cs の実装
3-wayトグルボタンのためのクラス
Touchイベントで画像更新および実況モードの保存
実況モードの保存にはPlayerPrefsを使用
Texture2Dを利用して泥臭く実装
github
https://github.com/domaemon/unitychan2d/blob/feature/ep_demo/Assets/UnityChan2D/Demo/Scripts/LiveCommentaryButtons.cs
- 19. LIVE実況うながしUX
StartController.cs の拡張
ゲームスタート画面のコントロールスクリプト
ここで3-wayトグルボタンクラスのインスタンス化
github
https://github.com/domaemon/unitychan2d/blob/feature/ep_demo/Assets/UnityChan2D/Demo/Scripts/StartController.cs
- 20. LIVE実況うながしUX
Demo.cs の拡張
シーン遷移を管理するスクリプト
ここでEP録画及び実況機能を実装
PlayerPrefs から実況モードを読み込む
github
https://github.com/domaemon/unitychan2d/blob/feature/ep_demo/Assets/UnityChan2D/Demo/Scripts/Demo.cs