Merge branch 'features/enemy' of https://git.bib.de/PBA3H24ASE/ConvenientHorror
This commit is contained in:
17
Assets/Scripts/Enemy/EnemyType.cs
Normal file
17
Assets/Scripts/Enemy/EnemyType.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "New Enemy Data", menuName = "Enemy Data")]
|
||||
public class EnemyType : ScriptableObject
|
||||
{
|
||||
public string enemyName;
|
||||
public GameObject enemyPrefab;
|
||||
public GameObject enemyJumpscarePrefab;
|
||||
public int approachStepCounter;
|
||||
public float delayBetweenStep;
|
||||
public float stayTime;
|
||||
public Vector3 firstRoomPosition;
|
||||
public Vector3 secondRoomPosition;
|
||||
public Vector3 thirdRoomPosition;
|
||||
public Vector3 mainRoomLeftPostion;
|
||||
public Vector3 mainRoomRightPosition;
|
||||
}
|
||||
2
Assets/Scripts/Enemy/EnemyType.cs.meta
Normal file
2
Assets/Scripts/Enemy/EnemyType.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: da88df8e75e881e42856c4de256e7348
|
||||
18
Assets/Scripts/Enemy/JumpTrigger.cs
Normal file
18
Assets/Scripts/Enemy/JumpTrigger.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class JumpTrigger : MonoBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Sobald der Step an der offenen Tür verbraucht wird, geht der GFegner auf "void OnTriggerEnter" und es wird ein Sound abgespielt, sowie das Bild.
|
||||
}
|
||||
2
Assets/Scripts/Enemy/JumpTrigger.cs.meta
Normal file
2
Assets/Scripts/Enemy/JumpTrigger.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 23733660b5dbbb24eaf9fbb347762cb1
|
||||
Reference in New Issue
Block a user