Skip to content
Snippets Groups Projects
Commit 781f6b29 authored by Nongma SORGHO's avatar Nongma SORGHO
Browse files

(fix: all) fixing 4 players game routine

parent 62e3fbb5
1 merge request!50(fix: all) fixing 4 players game routine
<linker>
<assembly fullname="Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" preserve="all">
<type fullname="UnityEngine.AddressableAssets.Addressables" preserve="all" />
</assembly>
<assembly fullname="Unity.Localization, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.Localization.Locale" preserve="all" />
<type fullname="UnityEngine.Localization.Tables.SharedTableData" preserve="all" />
<type fullname="UnityEngine.Localization.Tables.StringTable" preserve="all" />
<type fullname="UnityEngine.Localization.LocaleIdentifier" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Localization.Metadata.MetadataCollection" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Localization.Tables.DistributedUIDGenerator" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Localization.Tables.SharedTableData/SharedTableEntry" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Localization.Tables.TableEntryData" preserve="nothing" serialized="true" />
</assembly>
<assembly fullname="Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" preserve="all">
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider" preserve="all" />
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider" preserve="all" />
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider" preserve="all" />
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.LegacyResourcesProvider" preserve="all" />
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.SceneProvider" preserve="all" />
</assembly>
<assembly fullname="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.Object" preserve="all" />
</assembly>
</linker>
\ No newline at end of file
fileFormatVersion: 2
guid: 8244ed2312f2335588e921c4c5ca6009
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -205,7 +205,7 @@ public class Joueur : MonoBehaviour
{
// if it is not this player's turn disable the dice button
float[] timerInfo = client.getTimerInfo(ID_joueur-1);
if (tour + 1 != ID_joueur || hasChosen || timerInfo[0] == 2.0f)
if (cient.get_ID_tour() + 1 != ID_joueur || hasChosen || timerInfo[0] == 2.0f)
{
choiceButton.interactable = false;
}
......@@ -213,7 +213,7 @@ public class Joueur : MonoBehaviour
{
choiceButton.interactable = true;
}
if (tour + 1 == ID_joueur && gameStarted)
if (cient.get_ID_tour() + 1 == ID_joueur && gameStarted)
{
choiceButton.gameObject.SetActive(true);
}
......@@ -221,6 +221,7 @@ public class Joueur : MonoBehaviour
{
choiceButton.gameObject.SetActive(false);
}
UnityEngine.Debug.Log("id du joueur : " + ID_joueur + " tour : " + client.get_ID_tour());
}
/**
......@@ -246,4 +247,4 @@ public class Joueur : MonoBehaviour
{
return count_pion;
}
}
}
\ No newline at end of file
......@@ -148,7 +148,7 @@ public class Partie : MonoBehaviour
this.nb_joueur = joueurs.Length;
for (int i = 0; i < 1; i++)
for (int i = 0; i < 4; i++)
{
this.clientSockets[i] = clients[i];
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment