Some error correction

This commit is contained in:
2021-07-23 13:55:58 +02:00
parent a4ddd9c7b6
commit d1fab9b434
9 changed files with 20100 additions and 818 deletions

View File

@@ -29,9 +29,7 @@ public class CameraTracking : MonoBehaviour
difference[0] = player_pos[0] - camera_pos[0];
difference[1] = player_pos[1] - camera_pos[1];
float smoothing_ = smoothing / Time.deltaTime;
camera_pos[0] += difference[0] / smoothing_;
camera_pos[1] += difference[1] / smoothing_;

View File

@@ -7,7 +7,7 @@ public class MovingPlatform : MonoBehaviour
public float width;
public float height;
[Range(0.1f, 8)] [SerializeField] private float speed = 1;
[Range(0.1f, 80 )] [SerializeField] private float speed = 1;
private bool movingLeft = false;
private bool movingUp = false;

View File

@@ -10,7 +10,7 @@ public class Rotation : MonoBehaviour
public bool static_center = true;
public bool right_rotation = true;
public bool flipping = false;
[Range(1f, 180f)] public float speed = 1;
[Range(0.1f, 180f)] public float speed = 1;
[Range(0, (float)Math.PI * 2)] public float flip_angle = 0;
private float angle;