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.
43 lines
871 B
43 lines
871 B
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
|
|
/// <summary> |
|
/// 游戏对象信息基类 |
|
/// </summary> |
|
public class BaseGameObjInfo : MonoBehaviour { |
|
|
|
public long gameObjID;//游戏对象ID |
|
public CloneObjType gameObjType;//游戏对象类型 |
|
public long UserID;//克隆出来的对象归属谁 |
|
|
|
public long GameObjID { get { return gameObjID; } } |
|
|
|
public void SetGameObjID(long id) |
|
{ |
|
gameObjID = id; |
|
} |
|
|
|
public string GetObjsOrg() |
|
{ |
|
foreach (UserData item in CurrentUserInfo.room.UserList) |
|
{ |
|
if (item.UserInfo.Id == UserID) |
|
{ |
|
return item.Org.DisplayName; |
|
} |
|
} |
|
|
|
return null; |
|
} |
|
|
|
// Use this for initialization |
|
void Start () { |
|
|
|
} |
|
|
|
// Update is called once per frame |
|
void Update () { |
|
|
|
} |
|
}
|
|
|