Updated visuals and polish
This commit is contained in:
@@ -22,6 +22,9 @@ public class PlayerController : MonoBehaviour
|
||||
|
||||
private AudioSource audioSource;
|
||||
private AIController aiController;
|
||||
|
||||
public float inputTimeout = 0;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
@@ -43,6 +46,11 @@ public class PlayerController : MonoBehaviour
|
||||
|
||||
this.rb.drag = this.idleDrag;
|
||||
|
||||
if(this.inputTimeout > 0) {
|
||||
this.inputTimeout -= Time.deltaTime;
|
||||
return;
|
||||
}
|
||||
|
||||
//Override any inputs if this instance is to be controlled by AI
|
||||
if (this.aiControlled)
|
||||
{
|
||||
@@ -103,14 +111,16 @@ public class PlayerController : MonoBehaviour
|
||||
this.lockBoost = true;
|
||||
}
|
||||
|
||||
//Irgendwas
|
||||
//Yeet
|
||||
if (Time.time > (this.lastBoostTime + this.boostDuration))
|
||||
{
|
||||
this.lockBoost = false;
|
||||
this.forceZone.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void InputTimeout(float t)
|
||||
{
|
||||
this.inputTimeout = t;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user