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.
51 lines
1.4 KiB
51 lines
1.4 KiB
using AX.MessageSystem; |
|
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
/// <summary> |
|
/// 克隆游戏对象信息基类 |
|
/// </summary> |
|
public class CloneGameObjInfo : BaseGameObjInfo |
|
{ |
|
public string buildNum;//楼号 |
|
public int floorNum;//层号 |
|
public int interlayerNum;//夹层号,0表示不是夹层,1表示第一个夹层 |
|
public int Layer; |
|
/// <summary> |
|
/// 显示or隐藏 |
|
/// </summary> |
|
public bool ShoworHidden; |
|
public string FullName; |
|
|
|
private void Awake() |
|
{ |
|
Layer = gameObject.layer; |
|
} |
|
public virtual void Start() |
|
{ |
|
PowerScroll.GetPower += HandOverablePowerCheck; |
|
OwnerPanel.GetOnesPower += HandOverablePowerCheck; |
|
} |
|
public virtual void OnDestroy() |
|
{ |
|
PowerScroll.GetPower -= HandOverablePowerCheck; |
|
OwnerPanel.GetOnesPower -= HandOverablePowerCheck; |
|
} |
|
public virtual string GetObjectName() |
|
{ |
|
return CloneObjTypeName.Instance.GetCloneNameByType(gameObjType); |
|
} |
|
private List<GameObject> HandOverablePowerCheck(long userID,List<GameObject> powerList) |
|
{ |
|
if (UserID == userID && (GetComponent<FireManControl>() || GetComponent<TruckMessage>())) |
|
{ |
|
powerList.Add(gameObject); |
|
return powerList; |
|
} |
|
else |
|
{ |
|
return powerList; |
|
} |
|
} |
|
} |
|
|
|
|