feat: go to scoringpage
This commit is contained in:
parent
6898ac3a84
commit
937006e07c
@ -1706,6 +1706,7 @@ MonoBehaviour:
|
|||||||
counterSFX: {fileID: 8300000, guid: 2ff45dbe56b6a4d08bfa7b103fa4effb, type: 3}
|
counterSFX: {fileID: 8300000, guid: 2ff45dbe56b6a4d08bfa7b103fa4effb, type: 3}
|
||||||
waitForPropositionsPage: {fileID: 1730465904}
|
waitForPropositionsPage: {fileID: 1730465904}
|
||||||
votingPage: {fileID: 1660260835}
|
votingPage: {fileID: 1660260835}
|
||||||
|
scoringPage: {fileID: 581333955}
|
||||||
promptList: {fileID: 11400000, guid: 21907abc84e40403ca34c4fb9ab30b06, type: 2}
|
promptList: {fileID: 11400000, guid: 21907abc84e40403ca34c4fb9ab30b06, type: 2}
|
||||||
--- !u!114 &375256413
|
--- !u!114 &375256413
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@ -2268,8 +2269,9 @@ GameObject:
|
|||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 581333954}
|
- component: {fileID: 581333954}
|
||||||
|
- component: {fileID: 581333955}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: ScorePlayersState
|
m_Name: ScoringPage
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
@ -2297,6 +2299,18 @@ RectTransform:
|
|||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &581333955
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 581333953}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: ae520d9a7647819498ae6228ced27630, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
--- !u!1 &593191224
|
--- !u!1 &593191224
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -35,6 +35,9 @@ public class RoomManager : MonoBehaviour
|
|||||||
[Header("Waiting For Proposition Page")]
|
[Header("Waiting For Proposition Page")]
|
||||||
public VotingPage votingPage;
|
public VotingPage votingPage;
|
||||||
|
|
||||||
|
[Header("Scoring Page")]
|
||||||
|
public ScoringPage scoringPage;
|
||||||
|
|
||||||
[Header("Other")]
|
[Header("Other")]
|
||||||
public PromptList promptList;
|
public PromptList promptList;
|
||||||
private Room myRoom = null;
|
private Room myRoom = null;
|
||||||
@ -276,7 +279,7 @@ private void OnNewGameStateStarted()
|
|||||||
Debug.Log("New State : MakeProposition");
|
Debug.Log("New State : MakeProposition");
|
||||||
AudioManager.Instance.ChangeMusic(MusicTitle.TakingPicture);
|
AudioManager.Instance.ChangeMusic(MusicTitle.TakingPicture);
|
||||||
waitForPropositionsPage.Initialize(myRoom, () => SendRoomState(GameState.MakeVote));
|
waitForPropositionsPage.Initialize(myRoom, () => SendRoomState(GameState.MakeVote));
|
||||||
waitingForPlayersPage.SetActive(false);
|
explanationPage.SetActive(false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case (int)GameState.MakeVote:
|
case (int)GameState.MakeVote:
|
||||||
@ -290,6 +293,7 @@ private void OnNewGameStateStarted()
|
|||||||
|
|
||||||
case (int)GameState.Score:
|
case (int)GameState.Score:
|
||||||
Debug.Log("It's score time !");
|
Debug.Log("It's score time !");
|
||||||
|
scoringPage.Initialize();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
11
Assets/Scripts/ScoringPage.cs
Normal file
11
Assets/Scripts/ScoringPage.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class ScoringPage : MonoBehaviour
|
||||||
|
{
|
||||||
|
public void Initialize()
|
||||||
|
{
|
||||||
|
gameObject.SetActive(true);
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Scripts/ScoringPage.cs.meta
Normal file
11
Assets/Scripts/ScoringPage.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ae520d9a7647819498ae6228ced27630
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user