[UnityTest] //Checks to see whether the glass is draggable at the beginning of the game public IEnumerator GlassIsDraggableAtStartOfGame() { GameObject glass = GameObject.Find("glass"); GlassDrag gd = glass.GetComponent <GlassDrag>(); Assert.IsTrue(gd.ReturnCanDrag()); yield return(null); }
void Start() { glass = GameObject.Find("glass"); glassScript = glass.GetComponent <GlassDrag>(); for (int i = 0; i < waterArray.Length; i++) { waterArray[i].SetActive(false); } }