public PathFinder() { cells = CellManager.GetInstance(); selectedUnit = UnitSelection.GetInstance(); units = UnitsList.GetInstance(); playerControler = PlayerControler.GetInstance(); }
public static UnitsList GetInstance() { if (instance == null) { instance = new UnitsList(); } return(instance); }
public static bool WinCheck() { if (CellManager.GetInstance().EnemyPortalCount() == 0 && UnitsList.GetInstance().GetAllEnemies().Length == 0) { return(true); } return(false); }
private void Awake() { cellManager = CellManager.GetInstance(); unitsList = UnitsList.GetInstance(); pathFinder = PathFinder.GetInstance(); attackPower = basicAttackPower; health = maxHealth; isActive = false; state = UnitState.IDLE; statHUD.SetHUDText(health.ToString()); audio = GetComponent <AudioSource>(); }
private void Start() { unitsList = UnitsList.GetInstance(); unitSelection = UnitSelection.GetInstance(); pathFinder = PathFinder.GetInstance(); }
private void Awake() { cellSelection = CellSelection.GetInstance(); unitsList = UnitsList.GetInstance(); unitSelection = UnitSelection.GetInstance(); }