2024-11-15 23:31:54 +08:00
|
|
|
|
using System;
|
2024-11-12 14:06:34 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
2024-11-15 23:31:54 +08:00
|
|
|
|
using System.Globalization;
|
2024-11-12 14:06:34 +08:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
public class HegemonTime : MonoBehaviour
|
|
|
|
|
{
|
2024-11-13 02:03:11 +08:00
|
|
|
|
public static HegemonTime instance;
|
2024-11-12 14:06:34 +08:00
|
|
|
|
public Text timeText;
|
|
|
|
|
public int timeNum;
|
2024-11-13 12:06:05 +08:00
|
|
|
|
public int carrySeconds;
|
2024-11-13 23:15:46 +08:00
|
|
|
|
public GameObject InfoObject;
|
2024-11-14 18:11:08 +08:00
|
|
|
|
public AllHouseContro allHouseContro;
|
2024-11-15 23:31:54 +08:00
|
|
|
|
|
|
|
|
|
public DateTime StartDateTime;
|
|
|
|
|
public DateTime BetDateTime;
|
|
|
|
|
|
2024-11-12 14:06:34 +08:00
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
2024-11-13 02:03:11 +08:00
|
|
|
|
instance = this;
|
2024-11-15 23:31:54 +08:00
|
|
|
|
|
2024-11-15 12:09:52 +08:00
|
|
|
|
|
2024-11-15 23:31:54 +08:00
|
|
|
|
//StartGame();
|
|
|
|
|
|
|
|
|
|
|
2024-11-12 14:06:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Update()
|
|
|
|
|
{
|
2024-11-14 18:11:08 +08:00
|
|
|
|
//Debug.Log("carrySeconds:" + InfoObject.GetComponent<selectGameEscape512>().carrySeconds);
|
2024-11-12 14:06:34 +08:00
|
|
|
|
|
|
|
|
|
}
|
2024-11-15 23:31:54 +08:00
|
|
|
|
//public IEnumerator StartGame()
|
|
|
|
|
//{
|
2024-11-13 18:01:18 +08:00
|
|
|
|
|
2024-11-15 15:07:55 +08:00
|
|
|
|
|
2024-11-15 23:31:54 +08:00
|
|
|
|
// //allHouseContro.ControAllDoorOpen();
|
|
|
|
|
// //while (timeNum >=0)
|
|
|
|
|
// //{
|
|
|
|
|
|
|
|
|
|
// // timeNum = 60 - QueryRoomdetails512.Instance.latestCarrySeconds;
|
|
|
|
|
// // timeText.text = (timeNum).ToString();// <20><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
// // yield return new WaitForSeconds(1f);// <20>ȴ<EFBFBD>1<EFBFBD><31>
|
|
|
|
|
// // timeText.text = (timeNum-1).ToString();
|
|
|
|
|
|
|
|
|
|
// // if ( selectLatest511.instance.status == 1)//ֹͣ<CDA3><D6B9>ע<EFBFBD><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
// // {
|
|
|
|
|
// // //Gamber513.Instance.roomNo=PlayerMovePos.instance.HouseId;//ȷ<><C8B7><EFBFBD><EFBFBD>ע<EFBFBD><D7A2><EFBFBD><EFBFBD>id
|
|
|
|
|
// // //Gamber513.Instance.UserBet();
|
|
|
|
|
// // allHouseContro.ControAllDoorClose();
|
|
|
|
|
// // MaskContro.instance.SetMask(true);
|
|
|
|
|
// // }
|
|
|
|
|
|
|
|
|
|
// // //if (timeNum < 20)//boos<6F><73><EFBFBD><EFBFBD>
|
|
|
|
|
// // //{
|
|
|
|
|
// // // Debug.Log("Boos<6F><73><EFBFBD><EFBFBD>");
|
|
|
|
|
|
|
|
|
|
// // // BossContro.instance.BossMove();
|
|
|
|
|
// // //}
|
|
|
|
|
// //}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //timeNum = 60;
|
|
|
|
|
//}
|
2024-11-15 12:09:52 +08:00
|
|
|
|
public void HadInfAndStartGame()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ
|
|
|
|
|
{
|
2024-11-15 23:31:54 +08:00
|
|
|
|
//DateTime StartDateTime = DateTime.ParseExact(
|
|
|
|
|
// selectLatest511.instance.startTime, // <20><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>
|
|
|
|
|
// "yyyy-MM-dd HH:mm:ss", // <20><>ʽ
|
|
|
|
|
// CultureInfo.InvariantCulture // ʹ<>ò<EFBFBD><C3B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
// );
|
|
|
|
|
//timeNum =60- QueryRoomdetails512.Instance.latestCarrySeconds;
|
|
|
|
|
//StartCoroutine(StartGame());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void GetcarrySeconds()
|
|
|
|
|
{
|
|
|
|
|
carrySeconds=QueryRoomdetails512.Instance.latestCarrySeconds;
|
2024-11-12 14:06:34 +08:00
|
|
|
|
}
|
|
|
|
|
}
|