Professional Documents
Culture Documents
u
using System.Collections;
//dodajem iz testa
public GameObject laser;
private GameManager gameManager;
bool dostigaoBrPoena; // cemu ovo sluzi?
if (Input.GetKeyDown(KeyCode.LeftArrow)) {
_direction = -1;
}
else if (Input.GetKeyDown(KeyCode.RightArrow)) {
_direction = 1;
}
else if (Input.GetKeyDown(KeyCode.G)) {
return 2; // moze bilo koji broj samo da je razlicit od ovih
}
return _direction;
}