您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
27 行
702 B
27 行
702 B
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace ApmTest
|
|
{
|
|
public class EnableGamePluginButton : MonoBehaviour
|
|
{
|
|
// Start is called before the first frame update
|
|
public Button m_button;
|
|
private GameApmTest m_test;
|
|
private bool m_gamePluginStatus;
|
|
|
|
void Start()
|
|
{
|
|
m_gamePluginStatus = false;
|
|
m_test = new GameApmTest();
|
|
Button btn = m_button.GetComponent<Button>();
|
|
btn.onClick.AddListener(this.switchStatus);
|
|
}
|
|
|
|
void switchStatus()
|
|
{
|
|
m_test.switchGamePluginStatus(m_gamePluginStatus);
|
|
m_gamePluginStatus = !m_gamePluginStatus;
|
|
}
|
|
}
|
|
}
|