Пример #1
0
    private void Start()
    {
        Vector3 gridCenter = m_WorldGrid.GetCenterForGrid(m_CurrentGridRow, m_CurrentGridCol);

        transform.position = new Vector3(gridCenter.x, gridCenter.y, transform.position.z);

        m_PlayerSelectGridOutline = Instantiate(m_PlayerSelectGridOutlinePrefab);
        m_PlayerSelectGridOutline.transform.localScale = new Vector3(WorldGrid.SingleGridWidth, WorldGrid.SingleGridHeight, 1f);
        m_PlayerSelectGridOutline.transform.position   = transform.position;
    }