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); }
// 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(); }
void Start() { this.preparationLogicHolder = this.GetHolder(); this.initialisePlayerHand(); }