修复编译错误
This commit is contained in:
@@ -8,7 +8,9 @@ namespace BaseGames.World
|
||||
/// </summary>
|
||||
public class DestructibleTile : MonoBehaviour, IDamageable
|
||||
{
|
||||
#pragma warning disable CS0414
|
||||
[SerializeField] private int _maxHP = 1;
|
||||
#pragma warning restore CS0414
|
||||
[SerializeField] private string _destructedId;
|
||||
/// <summary>
|
||||
/// ScriptableObject 注入(非静态 Instance)。
|
||||
|
||||
@@ -13,7 +13,9 @@ namespace BaseGames.World
|
||||
|
||||
[SerializeField] private bool _isInstantKill = true;
|
||||
[SerializeField] private int _damage = 9999;
|
||||
#pragma warning disable CS0414
|
||||
[SerializeField] private RespawnType _respawnType = RespawnType.AtLastSavePoint;
|
||||
#pragma warning restore CS0414
|
||||
|
||||
private void OnTriggerEnter2D(Collider2D other)
|
||||
{
|
||||
|
||||
@@ -19,8 +19,10 @@ namespace BaseGames.World.Liquid
|
||||
[SerializeField] private string _zoneId;
|
||||
|
||||
[Header("伤害(Water 类型专用;Acid/Lava 由子节点 HazardZone 处理)")]
|
||||
#pragma warning disable CS0414
|
||||
[SerializeField] private bool _dealsDrowningDamage = false;
|
||||
[SerializeField] private float _drowningDamagePerSecond = 5f;
|
||||
#pragma warning restore CS0414
|
||||
|
||||
[Header("物理配置")]
|
||||
[SerializeField] private LiquidPhysicsConfigSO _physicsConfig;
|
||||
|
||||
Reference in New Issue
Block a user