pt2
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class HealthBarFollow : MonoBehaviour
|
||||
{
|
||||
public Transform target;
|
||||
public Vector3 offset;
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (target != null)
|
||||
{
|
||||
transform.position = target.position + offset;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4bc53792102fa104f98e8374928d0979
|
||||
@@ -26,7 +26,7 @@ public class PlayerManager : MonoBehaviour
|
||||
|
||||
private void OnPlayerJoined(PlayerInput playerInput)
|
||||
{
|
||||
print("Player joined");
|
||||
print("Player joined");
|
||||
|
||||
//playerInput.transform.SetParent(transform);
|
||||
DontDestroyOnLoad(playerInput.gameObject);
|
||||
|
||||
Reference in New Issue
Block a user