1234567891011121314151617181920212223 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class ResavemapButtonTest : MonoBehaviour
- {
- // Start is called before the first frame update
- void Start()
- {
- this.GetComponent<Button>().onClick.AddListener(OnResavemapBtnClick);
- }
- private void OnDestroy()
- {
- this.GetComponent<Button>().onClick.RemoveListener(OnResavemapBtnClick);
- }
- private void OnResavemapBtnClick()
- {
- API_GSXR_Slam.GSXR_ResaveMap("forTest");
- }
- }
|