public IEnumerator AssetLightens() { AssetViewer aViewer = GameObject .FindWithTag("EventSystem") .GetComponent <AssetViewer>(); Asset desiredAsset = assets[0]; aViewer.placeInScene(desiredAsset); yield return(new WaitForSeconds(1f)); GameObject asset = GameObject.FindWithTag("Kitten"); Image assetImage = asset.GetComponent <Image>(); aViewer.Darken(asset); Assert.AreEqual(Color.grey, assetImage.color); aViewer.Lighten(asset); Assert.AreEqual(Color.white, assetImage.color); }
public override void HoverExit(Asset asset) { aViewer = AssetViewer.Instance; aViewer.Lighten(asset.getPrefab()); }