uiEnd
This commit is contained in:
@@ -1,18 +1,32 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class UIHome_BY_SelectRoomLevelPanel : SubUIBase
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
public Button MySelectRoom1;
|
||||
public Button MySelectRoom2;
|
||||
public Button MySelectRoom3;
|
||||
public UIHome_BY_MySelectRoomPenel panel_UIHome_BY_MySelectRoomPenel;
|
||||
public override void Awake()
|
||||
{
|
||||
|
||||
base.Awake();
|
||||
MySelectRoom1.onClick.AddListener(() =>
|
||||
{
|
||||
OnSelectRoom("");
|
||||
});
|
||||
MySelectRoom2.onClick.AddListener(() =>
|
||||
{
|
||||
OnSelectRoom("");
|
||||
});
|
||||
MySelectRoom3.onClick.AddListener(() =>
|
||||
{
|
||||
OnSelectRoom("");
|
||||
});
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
public void OnSelectRoom(string json)
|
||||
{
|
||||
|
||||
panel_UIHome_BY_MySelectRoomPenel.Show(json);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user