Пример #1
0
    public void Initialize()
    {
        int gridSize = GridManager.Instance.GetGridSize();

        unitGridGO = new GameObject[gridSize, gridSize];
        unitGrid   = new BasePawnsClass[gridSize, gridSize];

        for (int i = 0; i < gridSize; i++)
        {
            for (int j = 0; j < gridSize; j++)
            {
                unitGrid[i, j] = new PawnTemplate();
            }
        }
    }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Pawn{TTemplate}"/> class.
 /// </summary>
 /// <param name="id">The unique identifier.</param>
 /// <param name="template">The template to use.</param>
 internal Pawn(ulong id, PawnTemplate template) : base(id, template as TTemplate)
 {
 }