_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Battle_Royale/Allother.cs

56 lines
1.3 KiB
C#
Raw Normal View History

2024-11-18 16:53:39 +08:00
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
public class Allother : MonoBehaviour
{
2024-11-21 00:04:33 +08:00
public List<otherWoniu> otherWonius=new List<otherWoniu>();
public List<HouseBtn> House;//<2F><>ţ<EFBFBD><C5A3><EFBFBD><EFBFBD><EFBFBD>ĸ<EFBFBD><C4B8><EFBFBD><EFBFBD><EFBFBD>
public GameObject OtherWoniuPre;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ţԤ<C5A3><D4A4><EFBFBD><EFBFBD>
2024-11-18 16:53:39 +08:00
// Start is called before the first frame update
void Start()
{
//ControWoniuToMove();
//StartCoroutine(WoniuToMove());
}
2024-11-21 00:04:33 +08:00
//public IEnumerator WoniuToMove()
//{
// CreateWoniu();//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ţ
2024-11-18 16:53:39 +08:00
2024-11-21 00:04:33 +08:00
//}
//public async void ControWoniuToMove()
// {
// foreach (otherWoniu item in otherWonius)
// {
// await Task.Delay(1000);
// item.OtherWoniuMove();
// }
// }
//<2F><>ţȫ<C5A3><C8AB>ˢ<EFBFBD>µ<EFBFBD><C2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
public void RefrashAllWoniu()
{
2024-11-18 16:53:39 +08:00
}
2024-11-21 00:04:33 +08:00
public void CreateWoniu()
2024-11-18 16:53:39 +08:00
{
2024-11-21 00:04:33 +08:00
foreach (HouseBtn house in House)
2024-11-18 16:53:39 +08:00
{
2024-11-21 00:04:33 +08:00
for (int i = 0; i < house.roomUserNo; i++)
{
GameObject ot=Instantiate(OtherWoniuPre, transform);
otherWonius.Add(ot.GetComponent<otherWoniu>());
ot.GetComponent<otherWoniu>().OtherWoniuMove(house.roomNo);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
2024-11-18 16:53:39 +08:00
}
}
2024-11-21 00:04:33 +08:00
2024-11-18 16:53:39 +08:00
}