MOD: Zweite variante an Gegnern
This commit is contained in:
@@ -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(){
|
||||
|
@@ -10,6 +10,8 @@ public class Player : ScriptableObject
|
||||
[SerializeField]
|
||||
private float currentSpeed = 5f;
|
||||
|
||||
public Vector2 playerPosition;
|
||||
|
||||
public float getCurrentHealth(){
|
||||
return currentHealth;
|
||||
}
|
||||
|
Reference in New Issue
Block a user