private void Start() { inputs = new List <string>(); playerController = levelController.getPlayerController(); inputVisualizer = levelController.getInputVisualizer(); pauseMenuController = levelController.getPauseMenuController(); }
private void visualizeInput() { InputVisualizer.clear(); foreach (Gegenstand g in gegenstaende) { InputVisualizer.add(g.getvalue(), g.getweight()); } }
//Diese Methode wird automatisch von Unity aufgerufen void Start() { btnGlobalesMaximalgewichtSetzen.onClick.AddListener(setGlobalMaxWeight); btnAdd.onClick.AddListener(addItem); btnGenerate.onClick.AddListener(generate); btnClear.onClick.AddListener(clearItems); btnSolveNW.onClick.AddListener(solve); InputVisualizer.set(btnPrefab, contentInput); OutputVisualizer.set(btnPrefab, contentOutput); }
private void Start() { layerMask = 1 << LayerMask.NameToLayer("Wall") | 1 << LayerMask.NameToLayer("ElementWithCollision") | 1 << LayerMask.NameToLayer("ElementWithoutCollision") | 1 << LayerMask.NameToLayer("NPC"); inputVisualizer = levelController.getInputVisualizer(); }