fuck main BTN
This commit is contained in:
parent
bccf2346a2
commit
067758e715
File diff suppressed because it is too large
Load Diff
8
TheStrongestSnail/Assets/Scripts/Scene_main.meta
Normal file
8
TheStrongestSnail/Assets/Scripts/Scene_main.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 87fe9c1a6f65ee74bad4a6ea43d5ca8e
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
81
TheStrongestSnail/Assets/Scripts/Scene_main/mainBTN.cs
Normal file
81
TheStrongestSnail/Assets/Scripts/Scene_main/mainBTN.cs
Normal 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()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
11
TheStrongestSnail/Assets/Scripts/Scene_main/mainBTN.cs.meta
Normal file
11
TheStrongestSnail/Assets/Scripts/Scene_main/mainBTN.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fa9fccadda7b7ac43b24c43fa954dcce
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user