抽象类改virtual
This commit is contained in:
parent
0b6a393e81
commit
9ca554ab57
|
@ -7,17 +7,5 @@ using UnityEngine;
|
|||
/// </summary>
|
||||
public class Device_LowVoltageCurrentTransformer : Device_Base
|
||||
{
|
||||
/// <summary>
|
||||
/// ²»ÐèÒª
|
||||
/// </summary>
|
||||
/// <param name="triggerInfo"></param>
|
||||
public override void LoadCurrentTriggerStat(string triggerInfo)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override string SaveCurrentTriggerStat()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,20 +40,4 @@ public class DeviceTrigger : PermanentTriggerBase
|
|||
_highlight.SetHighlighted(false);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ²»ÐèÒª
|
||||
/// </summary>
|
||||
/// <param name="triggerInfo"></param>
|
||||
/// <exception cref="NotImplementedException"></exception>
|
||||
public override void LoadCurrentTriggerStat(string triggerInfo)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override string SaveCurrentTriggerStat()
|
||||
{
|
||||
return "";
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -218,19 +218,4 @@ public class Device_3Phase4WireMeter : Device_Base
|
|||
CallScoreAction(true);
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ²»ÐèÒª
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string SaveCurrentTriggerStat()
|
||||
{
|
||||
return "";
|
||||
//throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public override void LoadCurrentTriggerStat(string triggerInfo)
|
||||
{
|
||||
//throw new System.NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,19 +16,4 @@ public class Device_Sundries : Device_Base
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ²»ÐèÒª
|
||||
/// </summary>
|
||||
/// <param name="triggerInfo"></param>
|
||||
/// <exception cref="System.NotImplementedException"></exception>
|
||||
public override void LoadCurrentTriggerStat(string triggerInfo)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public override string SaveCurrentTriggerStat()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,19 +102,4 @@ public class Tool_Base : PermanentTriggerBase
|
|||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ²»ÐèÒª
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="NotImplementedException"></exception>
|
||||
public override string SaveCurrentTriggerStat()
|
||||
{
|
||||
return "";
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override void LoadCurrentTriggerStat(string triggerInfo)
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,16 +16,4 @@ public class MirrorController : PermanentTriggerBase
|
|||
GameManager.UIMgr.ShowPanel<UI_CheckMyselfPanel>(E_UI_Layer.Mid);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 不需要断线重连恢复
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="System.NotImplementedException"></exception>
|
||||
public override string SaveCurrentTriggerStat()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
public override void LoadCurrentTriggerStat(string triggerInfo){ }
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ using Unity.VisualScripting;
|
|||
/// <summary>
|
||||
/// 常驻交互
|
||||
/// </summary>
|
||||
public abstract class PermanentTriggerBase : MonoBehaviour
|
||||
public class PermanentTriggerBase : MonoBehaviour
|
||||
{
|
||||
public int triggerID;
|
||||
public string triggerName;
|
||||
|
@ -134,9 +134,9 @@ public abstract class PermanentTriggerBase : MonoBehaviour
|
|||
/// <summary>
|
||||
/// 保存Trigger的自身具体信息,参考scoreBase
|
||||
/// </summary>
|
||||
public abstract string SaveCurrentTriggerStat();
|
||||
public virtual string SaveCurrentTriggerStat() { return ""; }
|
||||
/// <summary>
|
||||
/// 加载Trigger的自身具体信息,参考scoreBase
|
||||
/// </summary>
|
||||
public abstract void LoadCurrentTriggerStat(string triggerInfo);
|
||||
public virtual void LoadCurrentTriggerStat(string triggerInfo) { }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue