This commit is contained in:
brausjonas
2023-01-29 00:25:54 +01:00
parent a6dd6752c1
commit da8ce4b425
19 changed files with 950 additions and 22 deletions
@@ -21,7 +21,7 @@ public class NoPlayablePlayer : Player
private Vector3 useLess = new Vector3();
public void Init()
public override void Init()
{
activated = false;
diceScript = dice.GetComponent<Dice>();
@@ -57,7 +57,7 @@ public class NoPlayablePlayer : Player
private void FixedUpdate()
{
if (activated)
if (activated && !name.Equals(""))
{
camera.transform.position = Vector3.SmoothDamp(camera.transform.position, transform.position + cameraOffset, ref velocity, 0.2f);