Updated visuals and polish

This commit is contained in:
2020-01-27 16:31:38 +01:00
parent 0d80cee4aa
commit 12dbfae935
39 changed files with 1486 additions and 28 deletions

View File

@@ -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;
}
}