54 lines
1.2 KiB
C#
54 lines
1.2 KiB
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using Unity.VisualScripting;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.SceneManagement;
|
||
|
using UnityEngine.UI;
|
||
|
|
||
|
public class ACM : Anim
|
||
|
{
|
||
|
public Button CLoseButton;
|
||
|
|
||
|
public Button GoogleBtn;
|
||
|
|
||
|
public Button FaceButton;
|
||
|
|
||
|
public Button YonghuxieyiButton;
|
||
|
|
||
|
public Toggle LoginToggle;
|
||
|
// Start is called before the first frame update
|
||
|
void Start()
|
||
|
{
|
||
|
this.gameObject.SetActive(false);
|
||
|
GoogleBtn.onClick.AddListener(() =>
|
||
|
{
|
||
|
BTnmove(GoogleBtn.gameObject);
|
||
|
ToMainScene();
|
||
|
|
||
|
});
|
||
|
FaceButton.onClick.AddListener(() =>
|
||
|
{
|
||
|
BTnmove(FaceButton.gameObject);
|
||
|
ToMainScene();
|
||
|
});
|
||
|
YonghuxieyiButton.onClick.AddListener((() =>
|
||
|
{
|
||
|
BTnmove(YonghuxieyiButton.gameObject);
|
||
|
LoginToggle.isOn= true;
|
||
|
}));
|
||
|
}
|
||
|
|
||
|
void ToMainScene()
|
||
|
{
|
||
|
if (LoginToggle.isOn)
|
||
|
{
|
||
|
SceneManager.LoadScene(1);
|
||
|
}
|
||
|
}
|
||
|
// Update is called once per frame
|
||
|
void Update()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|