Skip to content

Commit

Permalink
Ajout chargement a tous les menus
Browse files Browse the repository at this point in the history
  • Loading branch information
Nem0oo committed Jan 19, 2014
1 parent 0522160 commit 5436f1e
Show file tree
Hide file tree
Showing 49 changed files with 3,276 additions and 75,005 deletions.
6 changes: 3 additions & 3 deletions Assembly-CSharp-vs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{1C09369F-29C4-14D4-C980-635AB981BEDF}</ProjectGuid>
<ProjectGuid>{9CC13FBD-7A38-9BF9-EA21-A0F2D154C6B0}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
Expand Down Expand Up @@ -39,10 +39,10 @@
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="UnityEngine">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEngine.dll</HintPath>
<HintPath>C:/Program Files (x86)/Unity2/Editor/Data/Managed/UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEditor.dll</HintPath>
<HintPath>C:/Program Files (x86)/Unity2/Editor/Data/Managed/UnityEditor.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions Assembly-CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{1C09369F-29C4-14D4-C980-635AB981BEDF}</ProjectGuid>
<ProjectGuid>{9CC13FBD-7A38-9BF9-EA21-A0F2D154C6B0}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
Expand Down Expand Up @@ -39,10 +39,10 @@
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="UnityEngine">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEngine.dll</HintPath>
<HintPath>C:/Program Files (x86)/Unity2/Editor/Data/Managed/UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEditor.dll</HintPath>
<HintPath>C:/Program Files (x86)/Unity2/Editor/Data/Managed/UnityEditor.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -103,7 +103,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="Assembly-UnityScript-firstpass.unityproj">
<Project>{BD7761DF-6156-D0BA-831A-5F2020021573}</Project> <Name>Assembly-UnityScript-firstpass</Name> </ProjectReference>
<Project>{C87CF20A-E2EE-6AE2-A05C-22FB01392D0B}</Project> <Name>Assembly-UnityScript-firstpass</Name> </ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
6 changes: 3 additions & 3 deletions Assembly-UnityScript-firstpass-vs.unityproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{BD7761DF-6156-D0BA-831A-5F2020021573}</ProjectGuid>
<ProjectGuid>{C87CF20A-E2EE-6AE2-A05C-22FB01392D0B}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
Expand Down Expand Up @@ -39,10 +39,10 @@
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="UnityEngine">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEngine.dll</HintPath>
<HintPath>C:/Program Files (x86)/Unity2/Editor/Data/Managed/UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEditor.dll</HintPath>
<HintPath>C:/Program Files (x86)/Unity2/Editor/Data/Managed/UnityEditor.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions Assembly-UnityScript-firstpass.unityproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{BD7761DF-6156-D0BA-831A-5F2020021573}</ProjectGuid>
<ProjectGuid>{C87CF20A-E2EE-6AE2-A05C-22FB01392D0B}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
Expand Down Expand Up @@ -39,10 +39,10 @@
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="UnityEngine">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEngine.dll</HintPath>
<HintPath>C:/Program Files (x86)/Unity2/Editor/Data/Managed/UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEditor.dll</HintPath>
<HintPath>C:/Program Files (x86)/Unity2/Editor/Data/Managed/UnityEditor.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions Assembly-UnityScript-vs.unityproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{CC84D0D6-02CF-1999-AE59-102BDD1EA0AF}</ProjectGuid>
<ProjectGuid>{0DDBE485-1F95-AE68-B4E3-1C9E79A57D68}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
Expand Down Expand Up @@ -39,10 +39,10 @@
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="UnityEngine">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEngine.dll</HintPath>
<HintPath>C:/Program Files (x86)/Unity2/Editor/Data/Managed/UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEditor.dll</HintPath>
<HintPath>C:/Program Files (x86)/Unity2/Editor/Data/Managed/UnityEditor.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions Assembly-UnityScript.unityproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{CC84D0D6-02CF-1999-AE59-102BDD1EA0AF}</ProjectGuid>
<ProjectGuid>{0DDBE485-1F95-AE68-B4E3-1C9E79A57D68}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
Expand Down Expand Up @@ -39,10 +39,10 @@
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="UnityEngine">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEngine.dll</HintPath>
<HintPath>C:/Program Files (x86)/Unity2/Editor/Data/Managed/UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEditor.dll</HintPath>
<HintPath>C:/Program Files (x86)/Unity2/Editor/Data/Managed/UnityEditor.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand All @@ -62,7 +62,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="Assembly-UnityScript-firstpass.unityproj">
<Project>{BD7761DF-6156-D0BA-831A-5F2020021573}</Project> <Name>Assembly-UnityScript-firstpass</Name> </ProjectReference>
<Project>{C87CF20A-E2EE-6AE2-A05C-22FB01392D0B}</Project> <Name>Assembly-UnityScript-firstpass</Name> </ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
17 changes: 16 additions & 1 deletion Assets/Kinect/Script/Kinect/Gesture/GameOverGesture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public class GameOverGesture : MonoBehaviour {


private GameObject[] menu = new GameObject[2];

GameObject[] listeGui;
GameObject guiChargement;



Expand All @@ -33,6 +36,11 @@ void Start () {
bonePos = new Vector3[2,(int)Kinect.NuiSkeletonPositionIndex.Count];
menu [0] = GameObject.Find ("GUI Text Recommencer");
menu [1] = GameObject.Find ("GUI Text Quitter");


listeGui = GameObject.FindGameObjectsWithTag ("GuiMenu");
guiChargement = GameObject.Find ("Affichage chargement");
guiChargement.guiText.text = "";

}

Expand Down Expand Up @@ -67,8 +75,15 @@ void Update () {

if (pass && peuxValider)
{
if (tableauBoolPos[0])
if (tableauBoolPos[0]){
foreach (GameObject gui in listeGui) {
gui.SetActive(false);
}
guiChargement.guiText.text = "Chargement...";
Application.LoadLevel(scene);
}


if (tableauBoolPos[1])
Application.LoadLevel("MenuAvecMinion");

Expand Down
16 changes: 14 additions & 2 deletions Assets/Kinect/Script/Kinect/Gesture/GameOverGestureChateau.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,19 @@ public class GameOverGestureChateau : MonoBehaviour {

private GameObject[] menu = new GameObject[2];


GameObject[] listeGui;
GameObject guiChargement;


// Use this for initialization
void Start () {
bonePos = new Vector3[2,(int)Kinect.NuiSkeletonPositionIndex.Count];
menu [0] = GameObject.Find ("GUI Text Recommencer");
menu [1] = GameObject.Find ("GUI Text Quitter");

listeGui = GameObject.FindGameObjectsWithTag ("GuiMenu");
guiChargement = GameObject.Find ("Affichage chargement");
guiChargement.guiText.text = "";

}

Expand Down Expand Up @@ -67,8 +73,14 @@ void Update () {

if (pass && peuxValider)
{
if (tableauBoolPos[0])
if (tableauBoolPos[0]){
foreach (GameObject gui in listeGui) {
gui.SetActive(false);
}
guiChargement.guiText.text = "Chargement...";
Application.LoadLevel(scene);
}

if (tableauBoolPos[1])
Application.LoadLevel("MenuAvecMinion");

Expand Down
2 changes: 1 addition & 1 deletion Assets/Kinect/Script/Kinect/Gesture/KinectMebu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void Update () {
gui.SetActive(false);
}
guiChargement.guiText.text = "Chargement...";
Application.LoadLevel("Scene_Chateau_2");
Application.LoadLevel("Transition");

}

Expand Down
17 changes: 15 additions & 2 deletions Assets/Kinect/Script/Kinect/Gesture/VictoireGesture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,19 @@ public class VictoireGesture : MonoBehaviour {

private GameObject[] menu = new GameObject[2];


GameObject[] listeGui;
GameObject guiChargement;


// Use this for initialization
void Start () {
bonePos = new Vector3[2,(int)Kinect.NuiSkeletonPositionIndex.Count];
menu [0] = GameObject.Find ("GUI Text Suivant");
menu [1] = GameObject.Find ("GUI Text Quitter");

listeGui = GameObject.FindGameObjectsWithTag ("GuiMenu");
guiChargement = GameObject.Find ("Affichage chargement");
guiChargement.guiText.text = "";

}

Expand Down Expand Up @@ -67,8 +73,15 @@ void Update () {

if (pass && peuxValider)
{
if (tableauBoolPos[0])
if (tableauBoolPos[0]){
foreach (GameObject gui in listeGui) {
gui.SetActive(false);
}
guiChargement.guiText.text = "Chargement...";
Application.LoadLevel(scene);
}


if (tableauBoolPos[1])
Application.LoadLevel("MenuAvecMinion");

Expand Down
16 changes: 14 additions & 2 deletions Assets/Kinect/Script/Kinect/Gesture/VictoireGestureChateau.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,20 @@ public class VictoireGestureChateau: MonoBehaviour {

private GameObject[] menu = new GameObject[2];


GameObject[] listeGui;
GameObject guiChargement;


// Use this for initialization
void Start () {
bonePos = new Vector3[2,(int)Kinect.NuiSkeletonPositionIndex.Count];
menu [0] = GameObject.Find ("GUI Text Recommencer");
menu [1] = GameObject.Find ("GUI Text Quitter");

listeGui = GameObject.FindGameObjectsWithTag ("GuiMenu");
guiChargement = GameObject.Find ("Affichage chargement");
guiChargement.guiText.text = "";

}

// Update is called once per frame
Expand Down Expand Up @@ -67,8 +73,14 @@ void Update () {

if (pass && peuxValider)
{
if (tableauBoolPos[0])
if (tableauBoolPos[0]){
foreach (GameObject gui in listeGui) {
gui.SetActive(false);
}
guiChargement.guiText.text = "Chargement...";
Application.LoadLevel(scene);


if (tableauBoolPos[1])
Application.LoadLevel("MenuAvecMinion");

Expand Down
Loading

0 comments on commit 5436f1e

Please sign in to comment.