Compare commits
4 Commits
9d54f7bfe3
...
7fb301a95a
Author | SHA1 | Date | |
---|---|---|---|
7fb301a95a | |||
887c2f1b5e | |||
71a18e4969 | |||
11a3e711af |
@ -486,14 +486,13 @@ GameObject:
|
||||
- component: {fileID: 6931136036260294093}
|
||||
- component: {fileID: 6931136036260294095}
|
||||
- component: {fileID: 6931136036260294092}
|
||||
- component: {fileID: 1553952866}
|
||||
m_Layer: 5
|
||||
m_Name: lingjiangtixian
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &6931136036260294093
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -554,18 +553,6 @@ MonoBehaviour:
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &1553952866
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6931136036260294082}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 86df4d3ef823af3479e6419f207e7aa0, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &6931136036319057909
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
File diff suppressed because it is too large
Load Diff
39
meng_yao/Assets/script/TanChuang/Lingjiang_Tanchuang.cs
Normal file
39
meng_yao/Assets/script/TanChuang/Lingjiang_Tanchuang.cs
Normal file
@ -0,0 +1,39 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
public class Lingjiang_Tanchuang : mount
|
||||
{
|
||||
public Button Kfbtn;
|
||||
public Transform canvas;
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
Kfbtn.onClick.AddListener(Display_pop_up_window);
|
||||
}
|
||||
|
||||
|
||||
private void Display_pop_up_window()
|
||||
{
|
||||
|
||||
|
||||
List<BoxType> boxTypes = new List<BoxType>();
|
||||
boxTypes.Add(new BoxType { Name = "", prompt = "", Type = 13, content = "未绑定支付宝" });
|
||||
boxTypes.Add(new BoxType { Name = "", prompt = "", Type = 11 });
|
||||
GameObject gameObject = add_pop_up();
|
||||
gameObject.transform.position = new Vector3(Screen.width / 2, Screen.height / 2, 0);
|
||||
gameObject.transform.SetParent(canvas);
|
||||
gameObject.GetComponent<input_box_pop_up_window>().minHeight = 300;//设置最低高度
|
||||
gameObject.GetComponent<input_box_pop_up_window>().setScrollMode(0);//设置滚动模式为滚动
|
||||
//gameObject.GetComponent<input_box_pop_up_window>().setScrollMode(0);//设置滚动模式为自动填充
|
||||
List<GameObject> gameObjects = gameObject.GetComponent<input_box_pop_up_window>().updateUI(boxTypes, "绑定提示");//测试输入框回调处理
|
||||
gameObjects[1].GetComponent<input_box_pop_up_window_item>().register_click(async (BoxType boxType, int type) =>//登录确定或取消
|
||||
{
|
||||
if (type == 1)
|
||||
{
|
||||
gameObject.GetComponent<input_box_pop_up_window>().destroy();
|
||||
}
|
||||
});
|
||||
}
|
||||
// Update is called once per frame
|
||||
}
|
11
meng_yao/Assets/script/TanChuang/Lingjiang_Tanchuang.cs.meta
Normal file
11
meng_yao/Assets/script/TanChuang/Lingjiang_Tanchuang.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 33fad0f4d4a75c5468a42ecfd1496d3c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user