手势插件引入暂存

This commit is contained in:
Caiyanpeng committed 2021-10-08 16:03:55 +08:00
1 parent 6d1bc8e2c8
commit fd8f419f09
70 files changed
+5062 -126

No files matched your search

@@ -77,6 +77,16 @@ public class EditUserController : PFUIPanel, INativeOnMobileImageSelect
g1.color1 = Utils.HexToColorHtml("#353543");
g1.color2 = Utils.HexToColorHtml("#474759");
});
TKPanRecognizer pan = new TKPanRecognizer();
var delta = Vector3.zero;
pan.gestureRecognizedEvent += (r) =>
{
delta = pan.deltaTranslation;
delta.x = 0;
delta.z = 0;
panel.transform.position += delta;
//Debug.Log("pan recognizer fired: " + image.transform.position);
};
#endif
mID = panel.Find("IDNumber").Find("input").Find("Text").GetComponent<Text>();
mSexDropdown = panel.Find("SexDropdown").GetComponent<PFUIDropdown>();