Skip to content
Extraits de code Groupes Projets
Valider 6343c965 rédigé par Samir LABANE's avatar Samir LABANE
Parcourir les fichiers

almost playable

parent 69c4c07d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -12,4 +12,5 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: ffcafdec1e745c24caa9ac4793fb188a, type: 3}
m_Name: FightList
m_EditorClassIdentifier:
fights: []
fights:
- {fileID: 11400000, guid: e17e8a26e0357f54cbeb5ba1a28773f6, type: 2}
......@@ -10,9 +10,9 @@ MonoBehaviour:
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9d9096f239b36c5468a259941b1009ef, type: 3}
m_Name: FightInfo
m_Name: FlameBowerFight
m_EditorClassIdentifier:
bird: {fileID: 0}
scoreToMatch: 0
tierMin: 0
tierMax: 0
bird: {fileID: 3375777806599401590, guid: c1345dc568727664fa5489acdedd80af, type: 3}
scoreToMatch: 10
tierMin: 1
tierMax: 2
......@@ -15,6 +15,7 @@ MonoBehaviour:
Pool:
- {fileID: 697331425601601878, guid: 04c974020468ba94f9cb502255a15dd1, type: 3}
- {fileID: 4934257969187937544, guid: ca7d6d67dabc35c4cbfde5d6408b8c3b, type: 3}
- {fileID: 1373577290397706128, guid: 1162e938a95c19648a57b1e5608b05bb, type: 3}
BaseDeck:
- {fileID: 8248376255236377208, guid: 51a4a77b36fcd6145b7c30746216f2b9, type: 3}
- {fileID: 4934257969187937544, guid: ca7d6d67dabc35c4cbfde5d6408b8c3b, type: 3}
......
Ce diff est replié.
fileFormatVersion: 2
guid: 982e9f47a9b81b24d917ae9389f46273
guid: a1633885aff01f04688aa4a949522219
DefaultImporter:
externalObjects: {}
userData:
......
Ce diff est replié.
......@@ -46,6 +46,8 @@ public class FightSelection : MonoBehaviour
Deck.Shuffle<FightInfo>(mValidFights); //reuse deck shuffle
Debug.Log(mValidFights.Count + " valid fights for current tier found");
if (mValidFights.Count == 0)
GameManager.Instance.Win(); //No more opponents, WE WIN!
}
}
......@@ -44,6 +44,7 @@ public class FightStarter : MonoBehaviour
else
{
Debug.Log("Player Lost!"); // Todo redirect to loosing scene
GameManager.Instance.Lose();
}
}
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameManager : MonoBehaviour
{
......@@ -100,6 +101,15 @@ public class GameManager : MonoBehaviour
draftPhase.gameObject.SetActive(false);
}
public void Win()
{
SceneManager.LoadScene("Victory Scene");
}
public void Lose()
{
SceneManager.LoadScene("Defeat Scene");
}
public void NextState()
{
switch(currentState)
......
Fichier déplacé
Fichier déplacé
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class RetryButton : MonoBehaviour
{
public void Retry()
{
//TODO: bouton retry
SceneManager.LoadScene("Game");
}
}
Fichier déplacé
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter