MOD: Irgendwas von damals

This commit is contained in:
2024-09-05 11:46:56 +02:00
parent af24ed5c5b
commit 220db9fe87
22 changed files with 382 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 07c8bd3239672f64fb54403105c7762a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View 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()
{
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 58a007a46183a8947a29e53b7c347d41
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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")){
}
} */
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 60acc7aa2e862ff488845c60a00d73cc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3906820bf94720c438c682389cd1b117
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: bf0aff90b569ed8489efa151fdd3793f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View 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;
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5821715bcd7665849b2215accab5515c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: