MOD: Irgendwas von damals
This commit is contained in:
8
ProjektUnity/Assets/Scripts/ScriptableObjects/Enemy.meta
Normal file
8
ProjektUnity/Assets/Scripts/ScriptableObjects/Enemy.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bf0aff90b569ed8489efa151fdd3793f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
18
ProjektUnity/Assets/Scripts/ScriptableObjects/Enemy/Enemy.cs
Normal file
18
ProjektUnity/Assets/Scripts/ScriptableObjects/Enemy/Enemy.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "Enemy", menuName = "Enemy/Enemy", order = 0)]
|
||||
public class Enemy : ScriptableObject
|
||||
{
|
||||
[HideInInspector]
|
||||
public float currentHealth = 0;
|
||||
|
||||
[SerializeField]
|
||||
private float health = 100;
|
||||
public float currentSpeed = 0;
|
||||
|
||||
private void Start() {
|
||||
currentHealth = health;
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5821715bcd7665849b2215accab5515c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user