Пример #1
0
    void CreateCell(Vector2 position, Team team, int id, int initialHelath, int maxHealth, int pulseValue)
    {
        GameObject cell = GameObject.Instantiate(cellPrefab_);

        cell.transform.position = position;
        team.AddCell(cell);
        cell.GetComponent <Cell>().Initialize(id, initialHelath, maxHealth, pulseValue);
    }