Example #1
0
 private void DoInit()
 {
     roundController = GetComponent <RoundController>();
     pathPlanner     = GetComponent <PathPlanner>();
     confirmButton   = GameObject.Find(ObjectNames.ConfirmButton);
     confirmButton.GetComponent <Button>().onClick.AddListener(() =>
     {
         pathPlanner.FinishPlanning(currentSelectedEnemyGroupButton.GetComponent <EnemyGroup>());
         ResetUI();
     });
     unreachableText           = GameObject.Find(ObjectNames.UnreachableRegionText);
     selectStartPointFirstText = GameObject.Find(ObjectNames.SelectStartPointFirstText);
     map = GameObject.Find(ObjectNames.Map);
     confirmButton.SetActive(false);
     unreachableText.SetActive(false);
     selectStartPointFirstText.SetActive(false);
 }
Example #2
0
 public void DoInit(UIController uiController, RoundController roundController, PathPlanner pathPlanner)
 {
     this.uiController    = uiController;
     this.roundController = roundController;
     this.pathPlanner     = pathPlanner;
 }