Enemy Data Type Scriptable Object Skript erstellt. Erste Gedanken.
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
|
||||
Reference in New Issue
Block a user