46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
using UnityEngine.UI;
|
|
|
|
public class GlobalFlag
|
|
{
|
|
public static UserInfo currentUser;
|
|
public static string roomID;
|
|
public static string practiceId;
|
|
/// <summary>
|
|
/// 席位ID
|
|
/// </summary>
|
|
public static string practiceSeatId;
|
|
/// <summary>
|
|
///是否正在预演
|
|
/// </summary>
|
|
public static bool isStartRehearsing;
|
|
/// <summary>
|
|
/// 当前想定ID
|
|
/// </summary>
|
|
public static string currentThinkId;
|
|
/// <summary>
|
|
/// 当前房间科目ID
|
|
/// </summary>
|
|
public static string practiceSubjectID;
|
|
/// <summary>
|
|
/// 红方蓝方
|
|
/// </summary>
|
|
public static int blueOrRed = -1;
|
|
/// <summary>
|
|
/// 当前想定的地图
|
|
/// </summary>
|
|
public static string landform;
|
|
public static bool CheckGuiRaycastObjects(EventSystem eventSystem, GraphicRaycaster graphicRaycaster)
|
|
{
|
|
PointerEventData eventData = new PointerEventData(eventSystem);
|
|
eventData.pressPosition = Input.mousePosition;
|
|
eventData.position = Input.mousePosition;
|
|
List<RaycastResult> list = new List<RaycastResult>();
|
|
graphicRaycaster.Raycast(eventData, list);
|
|
return list.Count > 0;
|
|
}
|
|
}
|