예제 #1
0
 public PathFinder()
 {
     cells           = CellManager.GetInstance();
     selectedUnit    = UnitSelection.GetInstance();
     units           = UnitsList.GetInstance();
     playerControler = PlayerControler.GetInstance();
 }
예제 #2
0
 public static UnitSelection GetInstance()
 {
     if (instance == null)
     {
         instance = new UnitSelection();
     }
     return(instance);
 }
예제 #3
0
 private void Awake()
 {
     playerControler = PlayerControler.GetInstance();
     unitSelection   = UnitSelection.GetInstance();
     cellManager     = CellManager.GetInstance();
     actionBT        = new Button[3] {
         pathMoveBT, healBT, captureBT
     };
 }
예제 #4
0
 private void Start()
 {
     unitsList     = UnitsList.GetInstance();
     unitSelection = UnitSelection.GetInstance();
     pathFinder    = PathFinder.GetInstance();
 }
예제 #5
0
 private void Awake()
 {
     cellSelection = CellSelection.GetInstance();
     unitsList     = UnitsList.GetInstance();
     unitSelection = UnitSelection.GetInstance();
 }