private void Start() { // Gameboard data gridXWidth = gridManager.GameBoardData().gridXWidth; gridYHeight = gridManager.GameBoardData().gridYHeight; gridTotalSize = gridManager.GameBoardData().gridTotalSize; healthSlider.value = health; actionsPerTurn = maxActionsPerTurn; }
// Start is called before the first frame update protected void Start() { enemyHealthSlider.value = enemyHealth; playerCharacter = GameObject.FindGameObjectWithTag("Player"); groundManager = gridManager.groundManager; // Grid data gridXWidth = gridManager.GameBoardData().gridXWidth; gridYHeight = gridManager.GameBoardData().gridYHeight; gridTotalSize = gridManager.GameBoardData().gridTotalSize; playerPos = gridManager.PlayerPosition(); prevPos = transform.position; enemyPos = transform.position; }