using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 游戏对象信息基类 /// 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 () { } }