MOD: Irgendwas von damals
This commit is contained in:
8
ProjektUnity/Assets/Scripts/Enemy.meta
Normal file
8
ProjektUnity/Assets/Scripts/Enemy.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 07c8bd3239672f64fb54403105c7762a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
18
ProjektUnity/Assets/Scripts/Enemy/EnemyMovement.cs
Normal file
18
ProjektUnity/Assets/Scripts/Enemy/EnemyMovement.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class EnemyMovement : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
11
ProjektUnity/Assets/Scripts/Enemy/EnemyMovement.cs.meta
Normal file
11
ProjektUnity/Assets/Scripts/Enemy/EnemyMovement.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 58a007a46183a8947a29e53b7c347d41
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
23
ProjektUnity/Assets/Scripts/Enemy/EnemyStats.cs
Normal file
23
ProjektUnity/Assets/Scripts/Enemy/EnemyStats.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class EnemyStats : MonoBehaviour
|
||||
{
|
||||
public Enemy enemy;
|
||||
public float health = 0;
|
||||
public float speed = 0;
|
||||
|
||||
private void Start() {
|
||||
health = enemy.currentHealth;
|
||||
speed = enemy.currentSpeed;
|
||||
}
|
||||
|
||||
//Für Später
|
||||
/* private void OnCollisionEnter2D(Collision2D other) {
|
||||
if (other.gameObject.CompareTag("Sword") || other.gameObject.CompareTag("Bullet")){
|
||||
|
||||
}
|
||||
} */
|
||||
}
|
11
ProjektUnity/Assets/Scripts/Enemy/EnemyStats.cs.meta
Normal file
11
ProjektUnity/Assets/Scripts/Enemy/EnemyStats.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 60acc7aa2e862ff488845c60a00d73cc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -9,6 +9,8 @@ public class PlayerMover : MonoBehaviour
|
||||
public KeyCode left = KeyCode.A;
|
||||
public KeyCode right = KeyCode.D;
|
||||
|
||||
|
||||
|
||||
public Rigidbody2D rb;
|
||||
public float speed = 2f;
|
||||
|
||||
@@ -16,7 +18,6 @@ public class PlayerMover : MonoBehaviour
|
||||
void Start()
|
||||
{
|
||||
rb = GetComponent<Rigidbody2D>();
|
||||
rb.gravityScale = 0;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
8
ProjektUnity/Assets/Scripts/ScriptableObjects.meta
Normal file
8
ProjektUnity/Assets/Scripts/ScriptableObjects.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3906820bf94720c438c682389cd1b117
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
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