aspect ratio handler

This commit is contained in:
2023-03-24 14:25:10 +01:00
parent 76f2975f7e
commit e644f1de7c
5 changed files with 146 additions and 86 deletions

View File

@@ -10,11 +10,13 @@ public class Source : MonoBehaviour
private movement movement;
public GameObject sourceSprite;
private Ugynok ugynok;
private bool oneTime = false;
private void Awake() {
movement = FindObjectOfType<movement>();
ugynok = FindObjectOfType<Ugynok>();
}
private void Start() {
@@ -28,6 +30,10 @@ public class Source : MonoBehaviour
if(isNyitva && oszlop != -1 && sor.Count == 1) {
sourceRender(oszlop, sor[0]);
if (!oneTime) {
for (int i = 0; i < 3; i++)
{
ugynok.UgynokSorsolas(sor[0], oszlop);
}
printSourceLocation();
oneTime = true;
}