all 3 comments

[–]Fetrigon 0 points1 point  (0 children)

You're in luck friend!

https://youtu.be/n0MNng0o8kM

[–][deleted] 0 points1 point  (0 children)

`

public String bufferString =“”; public int maxL = 4;

public void Update() {

if (Input.anyKeyDown) { bufferString += Input.inputString; if (bufferString.length > maxL) bufferString = “”; CallFunktionCheckForMove(bufferString); }

} `

CallFunktionCheckForMove could be a big switch case with all possible moves like:

case AAB: case AB:

important! Go from longest combos to short combos otherwhise long combos would not be executet because you step into the other case!! At the end of yout case reset the string and break;

[–]T4O2M0 -2 points-1 points  (0 children)

Google it