From 4d14f1408517caa448cfa28b5c560f0a71817e9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=88=92=E8=8D=A3=E6=A3=AE?= <7716842+shurongsen@user.noreply.gitee.com> Date: Wed, 30 Oct 2024 23:45:19 +0800 Subject: [PATCH] add --- .../develop_the_main_interface_slices.unity | 13 +++++++++++++ .../cultivation_Jinsha_mine_slices/room.cs | 16 ++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/meng_yao/Assets/Scenes/develop_the_main_interface_slices.unity b/meng_yao/Assets/Scenes/develop_the_main_interface_slices.unity index e03a7b057..1bacaa4a2 100644 --- a/meng_yao/Assets/Scenes/develop_the_main_interface_slices.unity +++ b/meng_yao/Assets/Scenes/develop_the_main_interface_slices.unity @@ -1647,6 +1647,7 @@ GameObject: m_Component: - component: {fileID: 618926457} - component: {fileID: 618926458} + - component: {fileID: 618926459} m_Layer: 0 m_Name: demine01 m_TagString: Untagged @@ -1697,6 +1698,18 @@ BoxCollider2D: serializedVersion: 2 m_Size: {x: 1.9975827, y: 1.4064226} m_EdgeRadius: 0 +--- !u!114 &618926459 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 618926456} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f2333cc3fd27a3f41852e211bb5cdea1, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &638771785 GameObject: m_ObjectHideFlags: 0 diff --git a/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/room.cs b/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/room.cs index b8cc66364..2a3e86b4e 100644 --- a/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/room.cs +++ b/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/room.cs @@ -3,8 +3,9 @@ using System.Collections.Generic; using UnityEngine; using TMPro; using System.Threading.Tasks; +using Palmmedia.ReportGenerator.Core; -public class room : MonoBehaviour +public class room : mount { public int roomNumber; public int maxNumer=10; @@ -70,11 +71,14 @@ public class room : MonoBehaviour PlayerManager.Instance.SetMoney(MoneyType.Stones, -10); } + Generate(); haveNumber--; toolsNumber--; UpdateShowCazhi(); ChangeTextPro(); + + //Vector3 GameObject.Instantiate(Boom, new Vector3(startPos.position.x, startPos.position.y + 0.5f, startPos.position.z - 1f), Quaternion.identity); await Task.Delay(500); @@ -208,8 +212,13 @@ public class room : MonoBehaviour } } + private bool Generate() + { + return true; + } + //¿ªÍØ·¿¼ä void GetRoom() { @@ -268,8 +277,11 @@ public class room : MonoBehaviour cazhi[4].SetActive(true); break; } - } + } + + + }