fuck main BTN

This commit is contained in:
wulongxiao 2024-11-25 22:14:18 +08:00
parent bccf2346a2
commit 067758e715
4 changed files with 1811 additions and 82 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 87fe9c1a6f65ee74bad4a6ea43d5ca8e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,81 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
//md FUCK everthing
//ʷɽ£¬±ðѧ
public class mainBTN : MonoBehaviour
{
public GameObject BTN_0;
public GameObject BTN_1;
public GameObject BTN_2;
public GameObject BTN_3;
public GameObject BTN_0_0;
public GameObject BTN_1_1;
public GameObject BTN_2_2;
public GameObject BTN_3_3;
// Start is called before the first frame update
void Start()
{
BTN_0.GetComponent<Button>().onClick.AddListener(()=> {
BTN_0.SetActive(false);
BTN_1.SetActive(true);
BTN_2.SetActive(true);
BTN_3.SetActive(true);
BTN_0_0.SetActive(true);
BTN_1_1.SetActive(false);
BTN_2_2.SetActive(false);
BTN_3_3.SetActive(false);
});
BTN_1.GetComponent<Button>().onClick.AddListener(() => {
BTN_0.SetActive(true);
BTN_1.SetActive(false);
BTN_2.SetActive(true);
BTN_3.SetActive(true);
BTN_0_0.SetActive(false);
BTN_1_1.SetActive(true);
BTN_2_2.SetActive(false);
BTN_3_3.SetActive(false);
});
BTN_2.GetComponent<Button>().onClick.AddListener(() => {
BTN_0.SetActive(true);
BTN_1.SetActive(true);
BTN_2.SetActive(false);
BTN_3.SetActive(true);
BTN_0_0.SetActive(false);
BTN_1_1.SetActive(false);
BTN_2_2.SetActive(true);
BTN_3_3.SetActive(false);
});
BTN_3.GetComponent<Button>().onClick.AddListener(() => {
BTN_0.SetActive(true);
BTN_1.SetActive(true);
BTN_2.SetActive(true);
BTN_3.SetActive(false);
BTN_0_0.SetActive(false);
BTN_1_1.SetActive(false);
BTN_2_2.SetActive(false);
BTN_3_3.SetActive(true);
});
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fa9fccadda7b7ac43b24c43fa954dcce
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: