public void SetInfo(List <int> coords, int tileNum) { CardData temp = GameManager.instance.Info(tileNum); cardNumber = tileNum; xCoord = coords[0]; yCoord = coords[1]; type = temp.TYPE(); buildTime = temp.BUILD(); tileValue = temp.TVALUE(); corruptVal = temp.CORRUPT(); buildValue = bVal(); if (type == TILETYPE.EVENT) { gameObject.GetComponent <BoxCollider2D>().enabled = false; } }