コード例 #1
0
 private void Start()
 {
     inputs              = new List <string>();
     playerController    = levelController.getPlayerController();
     inputVisualizer     = levelController.getInputVisualizer();
     pauseMenuController = levelController.getPauseMenuController();
 }
コード例 #2
0
 private void visualizeInput()
 {
     InputVisualizer.clear();
     foreach (Gegenstand g in gegenstaende)
     {
         InputVisualizer.add(g.getvalue(), g.getweight());
     }
 }
コード例 #3
0
 //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);
 }
コード例 #4
0
 private void Start()
 {
     layerMask       = 1 << LayerMask.NameToLayer("Wall") | 1 << LayerMask.NameToLayer("ElementWithCollision") | 1 << LayerMask.NameToLayer("ElementWithoutCollision") | 1 << LayerMask.NameToLayer("NPC");
     inputVisualizer = levelController.getInputVisualizer();
 }