public void Disengage() { GetComponent <SpriteRenderer>().sprite = fireOff; LeanTween.scale(scaleParent, new Vector3(maxSize, maxSize), shrinkTime).setEase(LeanTweenType.easeInOutQuad); FireMicro fm = GetComponentInParent <FireMicro>(); fm.StopBar(); }
void OnMouseUp() { if (started) { GetComponent <SpriteRenderer>().sprite = fireOff; FireMicro fm = (FireMicro)parent; fm.StopBar(); started = false; parent.SetWon(Correct()); Debug.Log(Correct()); } }