예제 #1
0
    private void Start()
    {
        // Gameboard data
        gridXWidth    = gridManager.GameBoardData().gridXWidth;
        gridYHeight   = gridManager.GameBoardData().gridYHeight;
        gridTotalSize = gridManager.GameBoardData().gridTotalSize;

        healthSlider.value = health;

        actionsPerTurn = maxActionsPerTurn;
    }
예제 #2
0
    // 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;
    }