public Tile(int producerId, int level, int tx, int ty, CreateTileTask task) { ProducerId = producerId; Level = level; Tx = tx; Ty = ty; Task = task; Users = 0; if (Task == null) { Debug.Log("Task can't be null!"); } }
public Tile(int producerId, int level, int tx, int ty, CreateTileTask task) { ProducerId = producerId; Level = level; Tx = tx; Ty = ty; Task = task; Users = 0; ID = GetId(level, tx, ty); TID = GetTId(producerId, ID); if (Task == null) { Debug.Log("Tile.ctor: Task can't be null!"); } }