修改场景

This commit is contained in:
taosuqi 2025-10-27 18:09:53 +08:00
parent 0a8021c819
commit 3069171956
9 changed files with 3964 additions and 13 deletions

View File

@ -48,7 +48,7 @@ GameObject:
- component: {fileID: 4393350400706451802}
- component: {fileID: 4393350400706451803}
m_Layer: 5
m_Name: UI_LoadingPanel
m_Name: UI_Loading
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,61 @@
using DG.Tweening;
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// ×ó²àÃæ°å
/// </summary>
public class UI_LeftBgPanel : BasePanel
{
private Button LeftOpen_Btn;
public bool isLeft;
protected override void Awake()
{
base.Awake();
LeftOpen_Btn = GetControl<Button>("LeftOpen_Btn");
}
protected override void OnClick(string btnPath)
{
base.OnClick(btnPath);
switch (btnPath)
{
case "LeftOpen_Btn":
Debug.Log(btnPath);
if (!isLeft)
{
gameObject.transform.DOLocalMove(new Vector3(-490, 0, 0), 1f);
isLeft = true;
//LeftOpen_Btn.GetComponent<Image>().sprite = ;
}
else
{
gameObject.transform.DOLocalMove(new Vector3(-960, 0, 0), 1f);
isLeft = false;
//LeftOpen_Btn.GetComponent<Image>().sprite = ;
}
break;
}
}
public override void ShowMe()
{
base.ShowMe();
Debug.Log("UI_LoadingPanel ShowMe");
}
public override void HideMe()
{
base.HideMe();
Debug.Log("UI_LoadingPanel HideMe");
}
private void Update()
{
}
}

View File

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

View File

@ -0,0 +1,60 @@
using DG.Tweening;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// ÓÒ²àÃæ°å
/// </summary>
public class UI_RightBgPanel : BasePanel
{
private Button RightOpen_Btn;
public bool isRight;
protected override void Awake()
{
base.Awake();
RightOpen_Btn = GetControl<Button>("RightOpen_Btn");
}
protected override void OnClick(string btnPath)
{
base.OnClick(btnPath);
switch (btnPath)
{
case "RightOpen_Btn":
Debug.Log(btnPath);
if (!isRight)
{
gameObject.transform.DOLocalMove(new Vector3(490, 0, 0), 1f);
isRight = true;
//RightOpen_Btn.GetComponent<Image>().sprite = ;
}
else
{
gameObject.transform.DOLocalMove(new Vector3(960, 0, 0), 1f);
isRight = false;
//RightOpen_Btn.GetComponent<Image>().sprite = ;
}
break;
}
}
public override void ShowMe()
{
base.ShowMe();
Debug.Log("UI_LoadingPanel ShowMe");
}
public override void HideMe()
{
base.HideMe();
Debug.Log("UI_LoadingPanel HideMe");
}
private void Update()
{
}
}

View File

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

View File

@ -0,0 +1,83 @@
using DG.Tweening;
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.UI;
public class UI_UpBgPanel : BasePanel
{
private ToggleGroup AllToggle_Tg;
private Toggle toggle_1;
private Toggle toggle_2;
private Toggle toggle_3;
private Toggle toggle_4;
private Toggle toggle_5;
private Toggle toggle_6;
protected override void Awake()
{
base.Awake();
AllToggle_Tg = GetControl<ToggleGroup>("AllToggle_Tg");
toggle_1 = GetControl<Toggle>("");
toggle_2 = GetControl<Toggle>("");
toggle_3 = GetControl<Toggle>("");
toggle_4 = GetControl<Toggle>("");
toggle_5 = GetControl<Toggle>("");
toggle_6 = GetControl<Toggle>("");
}
//protected override void OnClick(string btnPath)
//{
// base.OnClick(btnPath);
// switch (btnPath)
// {
// case "LeftOpen_Btn":
// Debug.Log(btnPath);
// if (!isLeft)
// {
// gameObject.transform.DOLocalMove(new Vector3(-490, 0, 0), 1f);
// isLeft = true;
// //LeftOpen_Btn.GetComponent<Image>().sprite = ;
// }
// else
// {
// gameObject.transform.DOLocalMove(new Vector3(-960, 0, 0), 1f);
// isLeft = false;
// //LeftOpen_Btn.GetComponent<Image>().sprite = ;
// }
// break;
// }
//}
public override void ShowMe()
{
base.ShowMe();
Debug.Log("UI_LoadingPanel ShowMe");
}
public override void HideMe()
{
base.HideMe();
Debug.Log("UI_LoadingPanel HideMe");
}
private void Update()
{
}
protected override void OnChangeToggle(string btnPath ,bool ison)
{
base.OnChangeToggle(btnPath, ison);
if (ison)
{
switch (btnPath)
{
case "LeftOpen_Btn":
Debug.Log(btnPath);
break;
}
}
}
}

View File

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