小修改
This commit is contained in:
parent
357a87ca1e
commit
ce7914b5c4
@ -325,6 +325,7 @@ public class AllHouseContro : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//击杀刷新房间蛋
|
//击杀刷新房间蛋
|
||||||
//checkOutAllTheEscapeRoomsAsync();
|
//checkOutAllTheEscapeRoomsAsync();
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@ using System.Collections;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using static UnityEngine.UIElements.UxmlAttributeDescription;
|
||||||
|
|
||||||
public class Allother : MonoBehaviour
|
public class Allother : MonoBehaviour
|
||||||
{
|
{
|
||||||
@ -12,6 +13,7 @@ public class Allother : MonoBehaviour
|
|||||||
public AllHouseContro allHouseContro;
|
public AllHouseContro allHouseContro;
|
||||||
|
|
||||||
public List<GameObject> JiaWoniu;//场下留下的假蜗牛
|
public List<GameObject> JiaWoniu;//场下留下的假蜗牛
|
||||||
|
public Transform ReTurnPos;//返回点
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
@ -34,6 +36,9 @@ public class Allother : MonoBehaviour
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void Reflash()//假蜗牛随机
|
public void Reflash()//假蜗牛随机
|
||||||
{
|
{
|
||||||
foreach (GameObject go in JiaWoniu)
|
foreach (GameObject go in JiaWoniu)
|
||||||
@ -61,6 +66,26 @@ public class Allother : MonoBehaviour
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//清空指定房间蜗牛
|
||||||
|
public void KilltheWoniu(int killNo)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
for (int i=0;i<allHouseContro.HouseBtnList.Count;i++)
|
||||||
|
{
|
||||||
|
if (allHouseContro.HouseBtnList[i].roomNo==killNo)
|
||||||
|
{
|
||||||
|
for (int j = 0; j< allHouseContro.HouseBtnList[i].otherWonius.Count; j++)
|
||||||
|
{
|
||||||
|
Destroy(allHouseContro.HouseBtnList[i].otherWonius[i].gameObject);
|
||||||
|
}
|
||||||
|
allHouseContro.HouseBtnList[i].otherWonius.Clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void CreateWoniu()
|
public void CreateWoniu()
|
||||||
{
|
{
|
||||||
foreach (HouseBtn house in allHouseContro.HouseBtnList)
|
foreach (HouseBtn house in allHouseContro.HouseBtnList)
|
||||||
|
Loading…
Reference in New Issue
Block a user