You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
4 years ago
|
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;
|
||
|
}
|
||
|
}
|