using System.Collections; using System.Collections.Generic; using UnityEngine; public static class CurrentUserInfo { //当前登陆用户 public static User mySelf; //当前登陆用户所选组织机构 //默认是用户本身所属的组织机构:练习模式下可选其他的;演习模式下是默认用户本身的组织机构,不可选) public static Organization organization; //当前登陆用户所选角色 public static Role role = Role.None; //当前登陆用户身份令牌 public static string token; //当前登陆用户所在房间 public static Room room; //是否是总指挥 public static bool generalCommanding; public static void CurrentUserInfoReset() { mySelf = null; organization = null; role = Role.None; token = ""; room = null; generalCommanding = false; } public static void ResertExit() { role = Role.None; room = null; generalCommanding = false; } }