add
This commit is contained in:
parent
2ad772f4b2
commit
65c9ef1659
@ -1827,6 +1827,7 @@ MonoBehaviour:
|
|||||||
historyPanel: {fileID: 907368012}
|
historyPanel: {fileID: 907368012}
|
||||||
IsLoadIn: 0
|
IsLoadIn: 0
|
||||||
IsHideLoadPanel: 0
|
IsHideLoadPanel: 0
|
||||||
|
KillNos:
|
||||||
is_jisha: 0
|
is_jisha: 0
|
||||||
is_jisha_jiesuan: 0
|
is_jisha_jiesuan: 0
|
||||||
--- !u!114 &142654724
|
--- !u!114 &142654724
|
||||||
@ -8330,6 +8331,7 @@ MonoBehaviour:
|
|||||||
- {fileID: 74076849}
|
- {fileID: 74076849}
|
||||||
- {fileID: 1725000187}
|
- {fileID: 1725000187}
|
||||||
- {fileID: 728954428}
|
- {fileID: 728954428}
|
||||||
|
ReTurnPos: {fileID: 0}
|
||||||
--- !u!1 &718419355
|
--- !u!1 &718419355
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -12342,6 +12344,7 @@ MonoBehaviour:
|
|||||||
allHouseContro: {fileID: 142654723}
|
allHouseContro: {fileID: 142654723}
|
||||||
bg: {fileID: 0}
|
bg: {fileID: 0}
|
||||||
OrPos: {x: 0, y: 0}
|
OrPos: {x: 0, y: 0}
|
||||||
|
allother: {fileID: 716344324}
|
||||||
--- !u!114 &1088858451
|
--- !u!114 &1088858451
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -15613,6 +15616,7 @@ MonoBehaviour:
|
|||||||
allHouseContro: {fileID: 142654723}
|
allHouseContro: {fileID: 142654723}
|
||||||
bg: {fileID: 0}
|
bg: {fileID: 0}
|
||||||
OrPos: {x: 0, y: 0}
|
OrPos: {x: 0, y: 0}
|
||||||
|
allother: {fileID: 716344324}
|
||||||
--- !u!114 &1377318869
|
--- !u!114 &1377318869
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -17055,6 +17059,7 @@ MonoBehaviour:
|
|||||||
allHouseContro: {fileID: 142654723}
|
allHouseContro: {fileID: 142654723}
|
||||||
bg: {fileID: 0}
|
bg: {fileID: 0}
|
||||||
OrPos: {x: 0, y: 0}
|
OrPos: {x: 0, y: 0}
|
||||||
|
allother: {fileID: 716344324}
|
||||||
--- !u!114 &1519901233
|
--- !u!114 &1519901233
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -17839,6 +17844,7 @@ MonoBehaviour:
|
|||||||
allHouseContro: {fileID: 142654723}
|
allHouseContro: {fileID: 142654723}
|
||||||
bg: {fileID: 0}
|
bg: {fileID: 0}
|
||||||
OrPos: {x: 0, y: 0}
|
OrPos: {x: 0, y: 0}
|
||||||
|
allother: {fileID: 716344324}
|
||||||
--- !u!114 &1557156372
|
--- !u!114 &1557156372
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -20580,6 +20586,7 @@ MonoBehaviour:
|
|||||||
allHouseContro: {fileID: 142654723}
|
allHouseContro: {fileID: 142654723}
|
||||||
bg: {fileID: 0}
|
bg: {fileID: 0}
|
||||||
OrPos: {x: 0, y: 0}
|
OrPos: {x: 0, y: 0}
|
||||||
|
allother: {fileID: 716344324}
|
||||||
--- !u!114 &1790882392
|
--- !u!114 &1790882392
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -7,6 +7,7 @@ using UnityEditor;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
using UnityEngine.Windows;
|
using UnityEngine.Windows;
|
||||||
|
using System.Linq;
|
||||||
using static BettingBtn;
|
using static BettingBtn;
|
||||||
using static UnityEditor.Progress;
|
using static UnityEditor.Progress;
|
||||||
|
|
||||||
@ -40,6 +41,8 @@ public class AllHouseContro : MonoBehaviour
|
|||||||
|
|
||||||
public bool IsLoadIn;//是否已经进入游戏
|
public bool IsLoadIn;//是否已经进入游戏
|
||||||
public bool IsHideLoadPanel;//是否关闭加载页面
|
public bool IsHideLoadPanel;//是否关闭加载页面
|
||||||
|
|
||||||
|
public List<int> KillNos;//»÷ɱ·¿¼äÁбí
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
async void Start()
|
async void Start()
|
||||||
{
|
{
|
||||||
@ -302,6 +305,7 @@ public class AllHouseContro : MonoBehaviour
|
|||||||
ServerResponse514 serverResponse_514 = JsonConvert.DeserializeObject<ServerResponse514>(response);
|
ServerResponse514 serverResponse_514 = JsonConvert.DeserializeObject<ServerResponse514>(response);
|
||||||
|
|
||||||
string[] parts = serverResponse_514.data.roomNoKill.Split(","); // 根据 ',' 分割字符串d
|
string[] parts = serverResponse_514.data.roomNoKill.Split(","); // 根据 ',' 分割字符串d
|
||||||
|
KillNos = parts.Select(int.Parse).ToList();
|
||||||
int index_ = 0;
|
int index_ = 0;
|
||||||
foreach (string part in parts) {
|
foreach (string part in parts) {
|
||||||
if (parts.Length > index_)
|
if (parts.Length > index_)
|
||||||
|
@ -85,6 +85,23 @@ public class Allother : MonoBehaviour
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//¶ÔÓ¦·¿¼äÎÏÅ£»ØÆðʼµã
|
||||||
|
public void ReturnstartPos(int roomNo)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < allHouseContro.HouseBtnList.Count; i++)
|
||||||
|
{
|
||||||
|
if (allHouseContro.HouseBtnList[i].roomNo == roomNo)
|
||||||
|
{
|
||||||
|
for (int j = 0; j < allHouseContro.HouseBtnList[i].otherWonius.Count; j++)
|
||||||
|
{
|
||||||
|
allHouseContro.HouseBtnList[i].otherWonius[j].GetComponent<OtherMove>().EndPos = ReTurnPos;
|
||||||
|
}
|
||||||
|
allHouseContro.HouseBtnList[i].otherWonius.Clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void CreateWoniu()
|
public void CreateWoniu()
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,8 @@ public class BossContro : MonoBehaviour
|
|||||||
public GameObject bg;
|
public GameObject bg;
|
||||||
|
|
||||||
public Vector2 OrPos;
|
public Vector2 OrPos;
|
||||||
|
|
||||||
|
public Allother allother;
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
|
@ -366,7 +366,11 @@ public class PlayerMove : MonoBehaviour
|
|||||||
GetComponent<BossContro>().BossAni.SetInteger("State", 2);
|
GetComponent<BossContro>().BossAni.SetInteger("State", 2);
|
||||||
yield return new WaitForSeconds(3f);
|
yield return new WaitForSeconds(3f);
|
||||||
GetComponent<BossContro>().BossAni.SetInteger("State", 0);
|
GetComponent<BossContro>().BossAni.SetInteger("State", 0);
|
||||||
|
foreach (int nos in allHouseContro.KillNos)
|
||||||
|
{
|
||||||
|
GetComponent<BossContro>().allother.KilltheWoniu(nos);
|
||||||
|
}
|
||||||
|
allHouseContro.KillNos.Clear();
|
||||||
BettingBtn.instance.GiveMoney(room_id);
|
BettingBtn.instance.GiveMoney(room_id);
|
||||||
yield return new WaitForSeconds(2f);
|
yield return new WaitForSeconds(2f);
|
||||||
//allHouseContro.BoosReturn();
|
//allHouseContro.BoosReturn();
|
||||||
|
Loading…
Reference in New Issue
Block a user