This commit is contained in:
2022-12-07 18:52:40 +01:00
parent 0d77014303
commit b72ef28721
4 changed files with 214 additions and 209 deletions

View File

@@ -11,6 +11,8 @@ public class Source : MonoBehaviour
private movement movement;
public GameObject sourceSprite;
private bool oneTime = false;
private void Start() {
movement = FindObjectOfType<movement>();
@@ -23,7 +25,10 @@ public class Source : MonoBehaviour
private void Update() {
if(isNyitva && oszlop != -1 && sor.Count == 1) {
sourceRender(sor[0], oszlop);
printSourceLocation();
if (!oneTime) {
printSourceLocation();
oneTime = true;
}
}
}