Exemple #1
0
    private PreparationLogicHolder LoadPlayerSelection()
    {
        Debug.Log("load saved PreparationLogicHolder");

        PreparationLogicHolder holder = Instantiate(preparationLogicHolderPrefab, null);

        holder.name = "PreparationLogicHolder";

        PreparationLogic logic = PreparationLogic.LoadFromFile(System.IO.Path.Combine(gameObject.scene.path, "../playerSelection.xml"));

        holder.player1Preparation = logic;

        return(holder);
    }
Exemple #2
0
    // Start is called before the first frame update
    void Start()
    {
        Debug.Log("start preparation main");

        preparationLogicHolder = GetHolder();
        DontDestroyOnLoad(preparationLogicHolder);

        logic = preparationLogicHolder.GetCurrentPreparationLogic();

        logic.selectionFullnessChanged  = null;
        logic.selectionFullnessChanged += NextButtonFullnessChanged;

        SyncCards();
        ConfigureButtons();
    }
Exemple #3
0
 void Start()
 {
     this.preparationLogicHolder = this.GetHolder();
     this.initialisePlayerHand();
 }