45 lines
678 B
C#
45 lines
678 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class InteractiveModel4_2 : ToolBase
|
|
{
|
|
public GameObject 插座提示;
|
|
// Start is called before the first frame update
|
|
protected override void Start()
|
|
{
|
|
|
|
|
|
base.Start();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
protected override void Update()
|
|
{
|
|
|
|
base.Update();
|
|
|
|
|
|
|
|
|
|
}
|
|
private void OnTriggerEnter(Collider other)
|
|
{
|
|
if (other.name == "笔头")
|
|
{
|
|
Debug.Log("笔头");
|
|
插座提示.SetActive(false);
|
|
流程脚本.流程对错判断 = 流程对错判断.正确;
|
|
交互完成 = true;
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
}
|