/// <summary> /// release // Waterstrong /// </summary> public void Release() { Normal(); if (PushDragMove && pressed) { // Waterstrong alter if (current == null) { current = this; EventDelegate.Execute(onElementRelease); tweenTarget.SetActive(false); tweenTarget.transform.localPosition = mPosition; current = null; } pressed = false; } }
/// <summary> /// on nui hand press /// </summary> public void Press() { if (enableColor) { //change to press color UpdateColor(pressedColor); } if (enableScale) { OnPressScale(true); } // send click message //EventDelegate.Parameter paras = new EventDelegate.Parameter(this, "hell0"); if (current == null) { current = this; EventDelegate.Execute(onElementPress); current = null; } pressed = true; }