Files
2025-01-24 16:28:13 +01:00

16 lines
571 B
C#
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using UnityEngine;
using UnityEngine.UI;
public class Door2 : MonoBehaviour
{
bool trig, open;//trig-проверка входа выхода в триггер(игрок должен быть с тегом Player) open-закрыть и открыть дверь
public float smooth = 2.0f;//скорость вращения
public float DoorOpenAngle = 85.0f;//угол вращения
private Vector3 defaulRot;
private Vector3 openRot;
public Text txt;//text
// Start is called before the first frame update
}