开头合并
This commit is contained in:
@@ -31,8 +31,8 @@ namespace AibisDream.FixSystem
|
||||
|
||||
// 模块基本数据
|
||||
[SerializeField] public BodyModuleData data;
|
||||
public float clickRadius = 0.5f;
|
||||
private bool _available = true;
|
||||
public float clickRadius = 0.2f;
|
||||
public bool available = true;
|
||||
private bool _cutting;
|
||||
|
||||
private void Awake()
|
||||
@@ -64,12 +64,12 @@ namespace AibisDream.FixSystem
|
||||
|
||||
public bool IsAvailable()
|
||||
{
|
||||
return _available;
|
||||
return available;
|
||||
}
|
||||
|
||||
public void SetSocketAvailable(bool isAvailable)
|
||||
{
|
||||
_available = isAvailable;
|
||||
available = isAvailable;
|
||||
}
|
||||
|
||||
public void PlugIn()
|
||||
@@ -119,6 +119,8 @@ namespace AibisDream.FixSystem
|
||||
ShowCutLine();
|
||||
_cutLine.OnCuttingDown += OnCuttingDown;
|
||||
_cutting = true;
|
||||
|
||||
EnumEventSystem.Global.Send(EventEnum.CutStart);
|
||||
}
|
||||
|
||||
private void OnCut()
|
||||
@@ -138,6 +140,8 @@ namespace AibisDream.FixSystem
|
||||
.Delay(0.5f)
|
||||
.DOTween(() => transform.DOMoveY(ConstRef.TweenEndY,
|
||||
(transform.position.y - ConstRef.TweenEndY) / ConstRef.FallSpeed).SetEase(Ease.InQuad))
|
||||
.Callback(() => DialogController.Instance?.StartDialogNode($"{data.moduleName}_cutdown"))
|
||||
.Callback(() => EnumEventSystem.Global.Send(EventEnum.CutEnd))
|
||||
.Start(this, () => Destroy(gameObject));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user