Example #1
0
    private IEnumerator checkGameOver(TeamScript tS, String winner)
    {
        Debug.Log("in checkOver");
        if (tS.characters.Count == 0)
        {
            //Show tS.teamNumber winner
            TextUpdater.GetInstance().UpdateGameOver("End Of Party\n" + winner + "\nwin the party !");
            //End Game and Return To Menu
            yield return(new WaitForSeconds(2));

            OnGameOver.Invoke();
        }
    }
Example #2
0
    void Start()
    {
        CamScript         = CameraScript.GetInstance();
        textUpdater       = TextUpdater.GetInstance();
        selectableHexPos  = new Hashtable();
        selectors         = new Stack();
        lastClickedObject = null;
        //clickedCase = false;
        //engageEnnemy = false;

        //TEMPORAIRE
        state = GameState.Start;
        //TEMPORAIRE
    }
Example #3
0
 public void Start()
 {
     cameraScript = CameraScript.GetInstance();
     textUpdater  = TextUpdater.GetInstance();
     cameraScript.switchCameraTargetToCompleteView(currentTeamNumber);
 }