Some things
This commit is contained in:
parent
6ba30e430e
commit
e4cc23e7f0
119 changed files with 70085 additions and 682 deletions
16
Assets/Scripts/Level 8/PlayerFollower8.cs
Normal file
16
Assets/Scripts/Level 8/PlayerFollower8.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace Level8 {
|
||||
public class PlayerFollower8 : MonoBehaviour {
|
||||
public void SetPosition(Vector3 position, bool grounded) {
|
||||
if (grounded) {
|
||||
transform.position = position;
|
||||
return;
|
||||
}
|
||||
|
||||
Vector3 pos = transform.position;
|
||||
pos.x = position.x;
|
||||
transform.position = pos;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue