[SerializeField]
private float shootDelay = 0.5f;
- Checkpoint checkpoint;
-
// Start is called before the first frame update
void Start()
{
rb = GetComponent<Rigidbody2D>();
powerUps = GetComponent<PowerUps>();
-
- checkpoint = GetComponent<Checkpoint>();
-
- transform.position = checkpoint.CheckPoints[0].transform.position;
}
// Update is called once per frame
}
moveInput = Input.GetAxisRaw("Horizontal");
-
- if(moveInput == 0)
- {
-
- }
}
void FixedUpdate()