void Awake() { rectTransform = GetComponent <RectTransform>(); image = GetComponent <Image>(); tileColorBackup = image.color; ChangeTileSize(); OnUnitSizeChanged += ChangeTileSize; }
void OnDestroy() { OnUnitSizeChanged -= ChangeTileSize; }