MOD: Zweite variante an Gegnern

This commit is contained in:
2024-09-05 21:10:50 +02:00
parent 1eeafca3f2
commit 5a92744ee1
47 changed files with 1344 additions and 0 deletions

View File

@@ -16,6 +16,8 @@ public class PlayerMover : MonoBehaviour
public PlayerStats playerStats;
public float speed = 2f;
public Player player;
// Start is called before the first frame update
void Start()
{
@@ -28,6 +30,8 @@ public class PlayerMover : MonoBehaviour
void Update()
{
Move();
player.playerPosition = transform.position;
}
public void Move(){

View File

@@ -10,6 +10,8 @@ public class Player : ScriptableObject
[SerializeField]
private float currentSpeed = 5f;
public Vector2 playerPosition;
public float getCurrentHealth(){
return currentHealth;
}