Tp3 + start TP4

This commit is contained in:
Crizomb 2024-12-10 13:14:30 +01:00
parent 57a40d426b
commit 3a7ce962e7
112 changed files with 63386 additions and 45 deletions

View file

@ -0,0 +1,23 @@
using UnityEngine;
public class Boost : MonoBehaviour
{
[SerializeField] Rigidbody rb;
[SerializeField] float boostMultiplier;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
// Middle click
if (Input.GetMouseButton(2))
{
rb.linearVelocity *= boostMultiplier;
}
}
}