Files
aibis-dream/Assets/Scripts/FixSystem/Crowbar/CrowBarSocket.cs
T
bottlefish b330be6118 修复脚本错误,将做好的核心表现加入
修改了更改饱和度的方法并加入脚本
修正了进入记忆视图时候的错误
增加了头部移动时线和插头的跟随
降低了记忆搜寻的时间
去掉了诊所场景固定的人物
2024-09-03 19:51:33 +08:00

53 lines
1.0 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using AibisDream;
using System.Drawing;
public class CrowBarSocket : MonoBehaviour
{
// Start is called before the first frame update
public bool IsAvailable { get; set; } = true;
public Vector2 InsertionPoint => transform.position;
public GameObject visual;
private YarnOption _option;
public YarnOption Option
{
set => _option = value;
}
private void Awake()
{
visual.SetActive(false);
}
public void InsertPlug()
{
visual.SetActive(true);
}
public void RemovePlug()
{
visual.SetActive(false);
}
public void DisableSocket()
{
gameObject.SetActive(false);
}
public void EnableSocket()
{
gameObject.SetActive(true);
}
public Vector2 GetPosition()
{
return transform.position;
}
public void Completed()
{
_option?.SelectOption();
IsAvailable=false;
}
}