Compare commits

...

4 Commits

Author SHA1 Message Date
舒荣森
c4709d7803 add 2024-10-31 13:27:31 +08:00
舒荣森
6e64f4d87e Merge branch 'main' of http://192.168.2.19:3000/shurongsen/Cute_demon_attacks 2024-10-31 02:56:21 +08:00
舒荣森
6841ff6cb1 Merge branch 'main' of http://192.168.2.19:3000/shurongsen/Cute_demon_attacks 2024-10-31 01:33:08 +08:00
舒荣森
4aeb3ebbe0 ADD 2024-10-31 01:28:14 +08:00
13 changed files with 76 additions and 3021 deletions

View File

@ -113,7 +113,7 @@ Material:
- _AlphaOutlineMinAlpha: 0 - _AlphaOutlineMinAlpha: 0
- _AlphaOutlinePower: 1 - _AlphaOutlinePower: 1
- _AlphaRoundThreshold: 0.5 - _AlphaRoundThreshold: 0.5
- _AspectRatio: 0.5625 - _AspectRatio: 0.46153846
- _BillboardY: 0 - _BillboardY: 0
- _BlurHD: 0 - _BlurHD: 0
- _BlurIntensity: 10 - _BlurIntensity: 10
@ -226,7 +226,7 @@ Material:
- _PosterizeGamma: 0.75 - _PosterizeGamma: 0.75
- _PosterizeNumColors: 8 - _PosterizeNumColors: 8
- _PosterizeOutline: 0 - _PosterizeOutline: 0
- _Radius: 0 - _Radius: 1
- _RandomSeed: 0 - _RandomSeed: 0
- _RectSize: 1 - _RectSize: 1
- _RotateUvAmount: 0 - _RotateUvAmount: 0

View File

@ -788,7 +788,6 @@ GameObject:
- component: {fileID: 109717919} - component: {fileID: 109717919}
- component: {fileID: 109717918} - component: {fileID: 109717918}
- component: {fileID: 109717923} - component: {fileID: 109717923}
- component: {fileID: 109717922}
m_Layer: 5 m_Layer: 5
m_Name: Canvas m_Name: Canvas
m_TagString: Untagged m_TagString: Untagged
@ -880,19 +879,6 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0} m_Pivot: {x: 0, y: 0}
--- !u!114 &109717922
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 109717917}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ea8231e49b8e6c440b4ede383765832d, type: 3}
m_Name:
m_EditorClassIdentifier:
canvs: {fileID: 109717917}
--- !u!114 &109717923 --- !u!114 &109717923
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -6798,7 +6784,7 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1883297442} m_GameObject: {fileID: 1883297442}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.014378071, y: 0.0022006035, z: -24.20161} m_LocalPosition: {x: 0.00003862381, y: 0.00182724, z: -24.20161}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []

File diff suppressed because it is too large Load Diff

View File

@ -359,9 +359,9 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: 55e741d1aba3d0c44917e893f6a834b6, type: 2} m_Material: {fileID: 2100000, guid: 55e741d1aba3d0c44917e893f6a834b6, type: 2}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1 m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1 m_Maskable: 0
m_OnCullStateChanged: m_OnCullStateChanged:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []

View File

@ -22,11 +22,14 @@ public struct Login
} }
public class mount : MonoBehaviour public class mount : MonoBehaviour
{ {
public static mount mountitem; public static mount mountitem;
// Start is called before the first frame update // Start is called before the first frame update
void Awake() public virtual void Awake()
{ {
mountitem = this; mountitem = this;
DontDestroyOnLoad(this); DontDestroyOnLoad(this);

View File

@ -25,7 +25,7 @@ public class input_box_pop_up_window_item : MonoBehaviour
boxType = my_boxType; boxType = my_boxType;
if (textobj != null) textobj.GetComponent<Text>().text = boxType.textName; if (textobj != null) textobj.GetComponent<Text>().text = boxType.textName;
if (promptobj != null) promptobj.GetComponent<Text>().text = boxType.prompt; if (promptobj != null) promptobj.GetComponent<Text>().text = boxType.prompt;
//if (iconobj != null) iconobj.GetComponent<Image>(). = boxType.icon; // if (iconobj != null) iconobj.GetComponent<Image>(). = boxType.icon;
} }
private void Update() private void Update()
{ {

View File

@ -32,6 +32,10 @@ public class JinShaBuy : mount
{ {
public int number=1; public int number=1;
public override void Awake()
{
}
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
@ -44,7 +48,7 @@ public class JinShaBuy : mount
} }
public void Show_buy()//×¢²á½çÃæ public void Show_buy()//¹ºÂòµ¯´°
{ {
List<BoxType> boxTypes = new List<BoxType>(); List<BoxType> boxTypes = new List<BoxType>();

View File

@ -18,6 +18,10 @@ public class Logo_in : mount
private float progress = 0f; private float progress = 0f;
private bool isLoading = false; private bool isLoading = false;
public override void Awake()
{
}
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
@ -70,6 +74,7 @@ public class Logo_in : mount
{ {
Login login = new Login(); Login login = new Login();
login.Phone = boxTypes[0].content; login.Phone = boxTypes[0].content;
Debug.Log(boxTypes[0].content);
//register.Code = boxTypes[0].content; //register.Code = boxTypes[0].content;
string jsonString = JsonUtility.ToJson(login); string jsonString = JsonUtility.ToJson(login);
string response = await web.SendRequest("http://47.109.133.52/Player/Login", "POST", jsonString); string response = await web.SendRequest("http://47.109.133.52/Player/Login", "POST", jsonString);
@ -117,7 +122,7 @@ public class Logo_in : mount
{ {
// 这里使用场景管理器进行跳转 // 这里使用场景管理器进行跳转
SceneManager.LoadScene(JumpScene.main_scene); SceneManager.LoadScene(JumpScene.main_scene);
GameObject.Destroy(this.gameObject);
} }

View File

@ -27,7 +27,11 @@ public class SceneGuodu : MonoBehaviour
void loadEnd(Scene scene, LoadSceneMode mode) void loadEnd(Scene scene, LoadSceneMode mode)
{ {
Debug.Log("场景加载完成:" + scene.name); Debug.Log("场景加载完成:" + scene.name);
mask.transform.GetComponent<CircleDissolveEffect>().isTransitioning = true; if (mask != null )
{
mask.transform.GetComponent<CircleDissolveEffect>().isTransitioning = true;
}
} }
public async void SlideInAndLoadScene(string sceneName) public async void SlideInAndLoadScene(string sceneName)
{ {

View File

@ -83,7 +83,11 @@ public class Promptmgr : MonoBehaviour
// 等待一段时间后销毁 // 等待一段时间后销毁
yield return new WaitForSeconds(1f); // 可调整的等待时间 yield return new WaitForSeconds(1f); // 可调整的等待时间
Destroy(uielement.gameObject); // Ïú»ÙUIÔªËØ if (uielement != null && uielement.gameObject != null)
{
Destroy(uielement.gameObject); // Ïú»ÙUIÔªËØ
}
} }

View File

@ -9,7 +9,8 @@ public class jinsha : mount
public event OnClikeWT OnType;//点击事件 public event OnClikeWT OnType;//点击事件
public JinShaBuy go; public JinShaBuy go;
private void Awake()
public override void Awake()
{ {
intance = this; intance = this;
} }

View File

@ -4,6 +4,8 @@ using UnityEngine;
using TMPro; using TMPro;
using System.Threading.Tasks; using System.Threading.Tasks;
using Palmmedia.ReportGenerator.Core; using Palmmedia.ReportGenerator.Core;
using System;
using System.Data;
public class room : mount public class room : mount
{ {
@ -35,10 +37,16 @@ public class room : mount
} }
ChangeTextPro(); ChangeTextPro();
}
private void OnEnable()
{
if (toolsNumber_text == null) return; if (toolsNumber_text == null) return;
jinsha.intance.OnType += addman; jinsha.intance.OnType += addman;
jinsha.intance.OnType += addtools; jinsha.intance.OnType += addtools;
} }
private void OnDisable() private void OnDisable()
@ -65,12 +73,13 @@ public class room : mount
PlayerManager.Instance.SetMoney(MoneyType.Stones, -10); PlayerManager.Instance.SetMoney(MoneyType.Stones, -10);
} }
Generate();
haveNumber--; haveNumber--;
toolsNumber--; toolsNumber--;
UpdateShowCazhi(); UpdateShowCazhi();
ChangeTextPro(); ChangeTextPro();
Generate();//是否有宝石
//Vector3 //Vector3
@ -111,6 +120,7 @@ public class room : mount
UpdateShowCazhi(); UpdateShowCazhi();
ChangeTextPro(); ChangeTextPro();
Generate();//是否有宝石
//Vector3 //Vector3
GameObject.Instantiate(Boom,new Vector3(startPos.position.x, startPos.position.y+0.5f, startPos.position.z-1f),Quaternion.identity); GameObject.Instantiate(Boom,new Vector3(startPos.position.x, startPos.position.y+0.5f, startPos.position.z-1f),Quaternion.identity);
await Task.Delay(500); await Task.Delay(500);
@ -206,11 +216,16 @@ public class room : mount
} }
} }
private bool Generate() private async void Generate()
{ {
string response = await web.SendRequest("http://47.109.133.52/FisherElfActive/GetListOfGem", "POST");
Debug.Log(response);
GetListOfGem data= JsonUtility.FromJson<GetListOfGem>(response);
if (data.ErrorMessage == "")
{
Debug.Log("连接成功");
}
return true;
} }
//¿ªÍØ·¿¼ä //¿ªÍØ·¿¼ä
@ -278,4 +293,25 @@ public class room : mount
} }
public class GetListOfGem
{
public List<Item> List;
public int ErrorCode;
public string ErrorMessage;
}
public class GetListOfGemItem
{
public string Id;
public int Num;
public int Type;
public string OwnerId;
public int ActivateValue;
public int GenerateValue;
public int AlreadyGenerateValue;
public int RemainEndureTime;
public int EndureTime;
public string CreateDateTime;
}

View File

@ -8,7 +8,7 @@ public class shopman :mount
public delegate void OnClikeWT(int type, int num); public delegate void OnClikeWT(int type, int num);
public event OnClikeWT OnType;//点击事件 public event OnClikeWT OnType;//点击事件
// Start is called before the first frame update // Start is called before the first frame update
private void Awake() public override void Awake()
{ {
instance = this; instance = this;
} }