Ejemplo n.º 1
0
    public void Disengage()
    {
        GetComponent <SpriteRenderer>().sprite = fireOff;
        LeanTween.scale(scaleParent, new Vector3(maxSize, maxSize), shrinkTime).setEase(LeanTweenType.easeInOutQuad);
        FireMicro fm = GetComponentInParent <FireMicro>();

        fm.StopBar();
    }
Ejemplo n.º 2
0
 void OnMouseUp()
 {
     if (started)
     {
         GetComponent <SpriteRenderer>().sprite = fireOff;
         FireMicro fm = (FireMicro)parent;
         fm.StopBar();
         started = false;
         parent.SetWon(Correct());
         Debug.Log(Correct());
     }
 }