예제 #1
0
파일: Key.cs 프로젝트: dackJavies/Lilac
 protected virtual void OnMouseUp()
 {
     if (this.available && BoardMutator.dragging == null)
     {
         Puzzle p = transform.parent.gameObject.GetComponent <Puzzle>();
         p.AddToCurrentString(this.val);
         this.pressed = true;
         this.myMeshRenderer.material.color = ColorUtilities.PRESSED;             //Color.magenta;
         SendKeyToLocal(UNAVAIL_POSITION);
         p.DetermineAvailability(this);
     }
 }