unity starter asset package importiert

This commit is contained in:
GodGodGod20081
2026-06-19 12:21:09 +02:00
parent ce681510ea
commit 8d4ffbf9ed
285 changed files with 37168 additions and 568 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
//Morten
using UnityEngine;
public class Door_Rotate : MonoBehaviour
@@ -38,7 +39,7 @@ public class Door_Rotate : MonoBehaviour
isOpen = !isOpen;
targetRotation = isOpen ? currentRotation + openAngle : currentRotation - openAngle;
}
//Smoothe rotation der tür
private void SmoothRotateDoor()
{
currentRotation = Mathf.Lerp(currentRotation, targetRotation, Time.deltaTime * rotationSpeed);
@@ -50,7 +51,7 @@ public class Door_Rotate : MonoBehaviour
transform.localEulerAngles.z
);
}
//checkt ob der spieler auf die Tür schaut und ob er nah genug ist, um sie zu öffnen https://docs.unity3d.com/6000.4/Documentation/ScriptReference/Physics.Raycast.html
private bool IsPlayerLooking()
{
if (playerCamera == null) return false;
+1 -1
View File
@@ -4,7 +4,7 @@ using UnityEngine.UI;
public class PlayerController : MonoBehaviour
{
private int speed;
[SerializeField] int speed;
private Vector3 position = Vector3.zero;
private Text score;
private int points;