eletvesztes ugynok

This commit is contained in:
2023-03-29 11:06:00 +02:00
parent b7a6275f0b
commit e08a43c72c
4 changed files with 388 additions and 680 deletions

View File

@@ -64,9 +64,9 @@ public class Akciok : MonoBehaviour
{ {
if (tolteny_index < 24 && ap.akciopont != 0) if (tolteny_index < 24 && ap.akciopont != 0)
{ {
if (tolteny_index + betarazas > 23) if (tolteny_index + betarazas > 24)
{ {
tolteny_index = 23; tolteny_index = 24;
} }
else else
{ {

View File

@@ -9,6 +9,7 @@ public class Ugynok : MonoBehaviour
private Akciok akciok; private Akciok akciok;
private Upgrade upgrade; private Upgrade upgrade;
private jatekmanager jatekmanager; private jatekmanager jatekmanager;
private Elet elet;
private movement movement; private movement movement;
public TMP_Text[] oneone; public TMP_Text[] oneone;
@@ -43,11 +44,18 @@ public class Ugynok : MonoBehaviour
public void setCanKillTrue(){ canKill = true; } public void setCanKillTrue(){ canKill = true; }
public Camera maincamera; public Camera maincamera;
private string[] previus_ugynok_csapatok;
private int elozo_x;
private int elozo_y ;
private void Awake() { private void Awake() {
akciok = FindObjectOfType<Akciok>(); akciok = FindObjectOfType<Akciok>();
upgrade = FindObjectOfType<Upgrade>(); upgrade = FindObjectOfType<Upgrade>();
jatekmanager = FindObjectOfType<jatekmanager>(); jatekmanager = FindObjectOfType<jatekmanager>();
movement = FindObjectOfType<movement>(); movement = FindObjectOfType<movement>();
elet = FindObjectOfType<Elet>();
previus_ugynok_csapatok = new string[3];
} }
private void Start() private void Start()
@@ -338,466 +346,150 @@ public class Ugynok : MonoBehaviour
} }
public void ugynokMegolveElozoHelyen(){
if(elozo_x != movement.jelenlegi_x || elozo_y != movement.jelenlegi_y){
foreach(var item in previus_ugynok_csapatok){
/* private void Update() if(!item.Equals("")){
{ //ha nem ures a text vagyis volt atirva szamra nezze meg hogy X-e
if(canShoot){ if(!item.Equals("x")){
if(oneone[0].text.Equals("")){ //vonjon le egy eletet
elet.Eletvesztes();
break;
}
}
} }
} }
if (canKill) if(elozo_x == 1 && elozo_y == 1){
for (int i = 0; i < 3; i++)
{ {
//check for collider onclick then x out tmp text then set canKill false previus_ugynok_csapatok[i] = oneone[i].text;
//check if text field is empty
//oneone
if (Input.GetKeyDown(KeyCode.Mouse0) && oneoneCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!oneone[0].text.Equals(""))
{
oneone[0].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && oneoneCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!oneone[1].text.Equals(""))
{
oneone[1].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && oneoneCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!oneone[2].text.Equals(""))
{
oneone[2].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
//onetwo
if (Input.GetKeyDown(KeyCode.Mouse0) && onetwoCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!onetwo[0].text.Equals(""))
{
onetwo[0].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && onetwoCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!onetwo[1].text.Equals(""))
{
onetwo[1].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && onetwoCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!onetwo[2].text.Equals(""))
{
onetwo[2].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
//onethree
if (Input.GetKeyDown(KeyCode.Mouse0) && onethreeCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!onethree[0].text.Equals(""))
{
onethree[0].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && onethreeCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!onethree[1].text.Equals(""))
{
onethree[1].text = "X";
canKill = false;
} }
else }else if(elozo_x == 1 && elozo_y == 2){
for (int i = 0; i < 3; i++)
{ {
Debug.Log("itt nincs ugynok csapat!!!"); previus_ugynok_csapatok[i] = onetwo[i].text;
}
} }
else if (Input.GetKeyDown(KeyCode.Mouse0) && onethreeCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition))) }else if(elozo_x == 1 && elozo_y == 3){
for (int i = 0; i < 3; i++)
{ {
if (!onethree[2].text.Equals("")) previus_ugynok_csapatok[i] = onethree[i].text;
{
onethree[2].text = "X";
canKill = false;
} }
else }else if(elozo_x == 1 && elozo_y == 4){
for (int i = 0; i < 3; i++)
{ {
Debug.Log("itt nincs ugynok csapat!!!"); previus_ugynok_csapatok[i] = onefour[i].text;
}
}
//onefour
if (Input.GetKeyDown(KeyCode.Mouse0) && onefourCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!onefour[0].text.Equals(""))
{
onefour[0].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
} }
else if (Input.GetKeyDown(KeyCode.Mouse0) && onefourCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition))) }else if(elozo_x == 2 && elozo_y == 1){
for (int i = 0; i < 3; i++)
{ {
if (!onefour[1].text.Equals("")) previus_ugynok_csapatok[i] = twoone[i].text;
{
onefour[1].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && onefourCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!onefour[2].text.Equals(""))
{
onefour[2].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
} }
//twoone }else if(elozo_x == 2 && elozo_y == 2){
if (Input.GetKeyDown(KeyCode.Mouse0) && twooneCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition))) for (int i = 0; i < 3; i++)
{ {
if (!twoone[0].text.Equals("")) previus_ugynok_csapatok[i] = twotwo[i].text;
{
twoone[0].text = "X";
canKill = false;
} }
else }else if(elozo_x == 2 && elozo_y == 3){
for (int i = 0; i < 3; i++)
{ {
Debug.Log("itt nincs ugynok csapat!!!"); previus_ugynok_csapatok[i] = twothree[i].text;
}
} }
else if (Input.GetKeyDown(KeyCode.Mouse0) && twooneCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition))) }else if(elozo_x == 2 && elozo_y == 4){
{ for (int i = 0; i < 3; i++)
if (!twoone[1].text.Equals(""))
{ {
twoone[1].text = "X"; previus_ugynok_csapatok[i] = twofour[i].text;
canKill = false;
} }
else }else if(elozo_x == 3 && elozo_y == 1){
for (int i = 0; i < 3; i++)
{ {
Debug.Log("itt nincs ugynok csapat!!!"); previus_ugynok_csapatok[i] = threeone[i].text;
} }
} }else if(elozo_x == 3 && elozo_y == 2){
else if (Input.GetKeyDown(KeyCode.Mouse0) && twooneCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition))) for (int i = 0; i < 3; i++)
{
if (!twoone[2].text.Equals(""))
{ {
twoone[2].text = "X"; previus_ugynok_csapatok[i] = threetwo[i].text;
canKill = false;
} }
else }else if(elozo_x == 3 && elozo_y == 3){
for (int i = 0; i < 3; i++)
{ {
Debug.Log("itt nincs ugynok csapat!!!"); previus_ugynok_csapatok[i] = threethree[i].text;
}
} }
//twotwo }else if(elozo_x == 3 && elozo_y == 4){
if (Input.GetKeyDown(KeyCode.Mouse0) && twotwoCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition))) for (int i = 0; i < 3; i++)
{ {
if (!twotwo[0].text.Equals("")) previus_ugynok_csapatok[i] = threefour[i].text;
{
twotwo[0].text = "X";
canKill = false;
} }
else
{
Debug.Log("itt nincs ugynok csapat!!!");
} }
elozo_x = movement.jelenlegi_x;
elozo_y = movement.jelenlegi_y;
} }
else if (Input.GetKeyDown(KeyCode.Mouse0) && twotwoCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{ public void setElozoHelyszin(int x, int y){
if (!twotwo[1].text.Equals("")) elozo_x = x;
elozo_y = y;
if(elozo_x == 1 && elozo_y == 1){
for (int i = 0; i < 3; i++)
{ {
twotwo[1].text = "X"; previus_ugynok_csapatok[i] = oneone[i].text;
canKill = false;
} }
else }else if(elozo_x == 1 && elozo_y == 2){
for (int i = 0; i < 3; i++)
{ {
Debug.Log("itt nincs ugynok csapat!!!"); previus_ugynok_csapatok[i] = onetwo[i].text;
} }
} }else if(elozo_x == 1 && elozo_y == 3){
else if (Input.GetKeyDown(KeyCode.Mouse0) && twotwoCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition))) for (int i = 0; i < 3; i++)
{
if (!twotwo[2].text.Equals(""))
{ {
twotwo[2].text = "X"; previus_ugynok_csapatok[i] = onethree[i].text;
canKill = false;
} }
else }else if(elozo_x == 1 && elozo_y == 4){
for (int i = 0; i < 3; i++)
{ {
Debug.Log("itt nincs ugynok csapat!!!"); previus_ugynok_csapatok[i] = onefour[i].text;
} }
} }else if(elozo_x == 2 && elozo_y == 1){
//twothree for (int i = 0; i < 3; i++)
if (Input.GetKeyDown(KeyCode.Mouse0) && twothreeCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!twothree[0].text.Equals(""))
{ {
twothree[0].text = "X"; previus_ugynok_csapatok[i] = twoone[i].text;
canKill = false;
} }
else }else if(elozo_x == 2 && elozo_y == 2){
for (int i = 0; i < 3; i++)
{ {
Debug.Log("itt nincs ugynok csapat!!!"); previus_ugynok_csapatok[i] = twotwo[i].text;
}
} }
else if (Input.GetKeyDown(KeyCode.Mouse0) && twothreeCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition))) }else if(elozo_x == 2 && elozo_y == 3){
for (int i = 0; i < 3; i++)
{ {
if (!twothree[1].text.Equals("")) previus_ugynok_csapatok[i] = twothree[i].text;
{
twothree[1].text = "X";
canKill = false;
} }
else }else if(elozo_x == 2 && elozo_y == 4){
for (int i = 0; i < 3; i++)
{ {
Debug.Log("itt nincs ugynok csapat!!!"); previus_ugynok_csapatok[i] = twofour[i].text;
}
} }
else if (Input.GetKeyDown(KeyCode.Mouse0) && twothreeCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition))) }else if(elozo_x == 3 && elozo_y == 1){
for (int i = 0; i < 3; i++)
{ {
if (!twothree[2].text.Equals("")) previus_ugynok_csapatok[i] = threeone[i].text;
{
twothree[2].text = "X";
canKill = false;
} }
else }else if(elozo_x == 3 && elozo_y == 2){
for (int i = 0; i < 3; i++)
{ {
Debug.Log("itt nincs ugynok csapat!!!"); previus_ugynok_csapatok[i] = threetwo[i].text;
}
} }
//twofour }else if(elozo_x == 3 && elozo_y == 3){
if (Input.GetKeyDown(KeyCode.Mouse0) && twofourCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition))) for (int i = 0; i < 3; i++)
{
if (!twofour[0].text.Equals(""))
{ {
twofour[0].text = "X"; previus_ugynok_csapatok[i] = threethree[i].text;
canKill = false;
} }
else }else if(elozo_x == 3 && elozo_y == 4){
for (int i = 0; i < 3; i++)
{ {
Debug.Log("itt nincs ugynok csapat!!!"); previus_ugynok_csapatok[i] = threefour[i].text;
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && twofourCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!twofour[1].text.Equals(""))
{
twofour[1].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && twofourCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!twofour[2].text.Equals(""))
{
twofour[2].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
//threeone
if (Input.GetKeyDown(KeyCode.Mouse0) && threeoneCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!threeone[0].text.Equals(""))
{
threeone[0].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && threeoneCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!threeone[1].text.Equals(""))
{
threeone[1].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && threeoneCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!threeone[2].text.Equals(""))
{
threeone[2].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
//threetwo
if (Input.GetKeyDown(KeyCode.Mouse0) && threetwoCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!threetwo[0].text.Equals(""))
{
threetwo[0].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && threetwoCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!threetwo[1].text.Equals(""))
{
threetwo[1].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && threetwoCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!threetwo[2].text.Equals(""))
{
threetwo[2].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
//threethree
if (Input.GetKeyDown(KeyCode.Mouse0) && threethreeCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!threethree[0].text.Equals(""))
{
threethree[0].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && threethreeCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!threethree[1].text.Equals(""))
{
threethree[1].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && threethreeCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!threethree[2].text.Equals(""))
{
threethree[2].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
//threefour
if (Input.GetKeyDown(KeyCode.Mouse0) && threefourCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!threefour[0].text.Equals(""))
{
threefour[0].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && threefourCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!threefour[1].text.Equals(""))
{
threefour[1].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
}
else if (Input.GetKeyDown(KeyCode.Mouse0) && threefourCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
{
if (!threefour[2].text.Equals(""))
{
threefour[2].text = "X";
canKill = false;
}
else
{
Debug.Log("itt nincs ugynok csapat!!!");
}
} }
} }
} }
*/
} }

View File

@@ -105,7 +105,8 @@ public class movement : MonoBehaviour
{"", "", "", "" } {"", "", "", "" }
}; };
private void Awake() { private void Awake()
{
ap = FindObjectOfType<Akciopont>(); ap = FindObjectOfType<Akciopont>();
ugynok = FindObjectOfType<Ugynok>(); ugynok = FindObjectOfType<Ugynok>();
targyak = FindObjectOfType<Targyak>(); targyak = FindObjectOfType<Targyak>();
@@ -265,6 +266,8 @@ public class movement : MonoBehaviour
jelenlegi_y = 4; jelenlegi_y = 4;
ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y); ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y);
} }
ugynok.setElozoHelyszin(jelenlegi_x, jelenlegi_y);
} }
public void mozgasHelyre(int x, int y) public void mozgasHelyre(int x, int y)
@@ -351,7 +354,7 @@ public class movement : MonoBehaviour
Debug.Log("Player clicked on the collider: " + oneone_Collider.gameObject.name); Debug.Log("Player clicked on the collider: " + oneone_Collider.gameObject.name);
if (eromulepes1.activeSelf == true & eromulepes2.activeSelf == true) if (eromulepes1.activeSelf == true & eromulepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -381,7 +384,7 @@ public class movement : MonoBehaviour
Debug.Log("Player clicked on the collider: " + twoone_Collider.gameObject.name); Debug.Log("Player clicked on the collider: " + twoone_Collider.gameObject.name);
if (feketepiaclepes1.activeSelf == true & feketepiaclepes2.activeSelf == true) if (feketepiaclepes1.activeSelf == true & feketepiaclepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -407,7 +410,7 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mez?re");
} }
} }
@@ -421,7 +424,7 @@ public class movement : MonoBehaviour
Debug.Log("Player clicked on the collider: " + threeone_Collider.gameObject.name); Debug.Log("Player clicked on the collider: " + threeone_Collider.gameObject.name);
if (metrolepes1.activeSelf == true & metrolepes2.activeSelf == true) if (metrolepes1.activeSelf == true & metrolepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -458,7 +461,7 @@ public class movement : MonoBehaviour
Debug.Log("Player clicked on the collider: " + onetwo_Collider.gameObject.name); Debug.Log("Player clicked on the collider: " + onetwo_Collider.gameObject.name);
if (szervereklepes1.activeSelf == true & szervereklepes2.activeSelf == true) if (szervereklepes1.activeSelf == true & szervereklepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -485,7 +488,7 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Nincs el<EFBFBD>g akci<EFBFBD>pontod vagy nem 1 mez<EFBFBD>n bel<EFBFBD>l akarsz l<EFBFBD>pni"); Debug.Log("Nincs eleg akciopontod vagy nem 1 mezon belul akarsz lepni");
} }
} }
@@ -496,7 +499,7 @@ public class movement : MonoBehaviour
Debug.Log("Player clicked on the collider: " + twotwo_Collider.gameObject.name); Debug.Log("Player clicked on the collider: " + twotwo_Collider.gameObject.name);
if (kingcasinolepes1.activeSelf == true & kingcasinolepes2.activeSelf == true) if (kingcasinolepes1.activeSelf == true & kingcasinolepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -522,7 +525,7 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
} }
} }
@@ -533,7 +536,7 @@ public class movement : MonoBehaviour
Debug.Log("Player clicked on the collider: " + threetwo_Collider.gameObject.name); Debug.Log("Player clicked on the collider: " + threetwo_Collider.gameObject.name);
if (feltoltolepes1.activeSelf == true & feltoltolepes2.activeSelf == true) if (feltoltolepes1.activeSelf == true & feltoltolepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -559,7 +562,7 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mez?re");
} }
} }
@@ -572,7 +575,7 @@ public class movement : MonoBehaviour
if (kutatolaborlepes1.activeSelf == true & kutatolaborlepes2.activeSelf == true) if (kutatolaborlepes1.activeSelf == true & kutatolaborlepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -598,7 +601,7 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mez?re");
} }
} }
@@ -613,7 +616,7 @@ public class movement : MonoBehaviour
if (kriptoklublepes1.activeSelf == true & kriptoklublepes2.activeSelf == true) if (kriptoklublepes1.activeSelf == true & kriptoklublepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -639,7 +642,7 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mez?re");
} }
} }
@@ -655,7 +658,7 @@ public class movement : MonoBehaviour
if (cyberplazalepes1.activeSelf == true & cyberplazalepes2.activeSelf == true) if (cyberplazalepes1.activeSelf == true & cyberplazalepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -681,7 +684,7 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
} }
@@ -696,7 +699,7 @@ public class movement : MonoBehaviour
if (hadiuzemlepes1.activeSelf == true & hadiuzemlepes2.activeSelf == true) if (hadiuzemlepes1.activeSelf == true & hadiuzemlepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -722,7 +725,7 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mez?re");
} }
} }
@@ -737,7 +740,7 @@ public class movement : MonoBehaviour
if (konyvtarlepes1.activeSelf == true & konyvtarlepes2.activeSelf == true) if (konyvtarlepes1.activeSelf == true & konyvtarlepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -763,7 +766,7 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mez?re");
} }
} }
@@ -778,7 +781,7 @@ public class movement : MonoBehaviour
if (korhazlepes1.activeSelf == true & korhazlepes2.activeSelf == true) if (korhazlepes1.activeSelf == true & korhazlepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -804,7 +807,7 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mez?re");
} }
} }
@@ -820,7 +823,7 @@ public class movement : MonoBehaviour
{ {
tavolsag = math.abs(tavolsag); tavolsag = math.abs(tavolsag);
// player mozgat<EFBFBD>sa <EFBFBD>s konzolra irat<EFBFBD>s // player mozgatasa es konzolra iratas
if (Input.GetKeyDown(KeyCode.Mouse0) && oneone_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))) if (Input.GetKeyDown(KeyCode.Mouse0) && oneone_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition)))
{ {
for (int x = 0; x < w; x++) for (int x = 0; x < w; x++)
@@ -857,6 +860,7 @@ public class movement : MonoBehaviour
Debug.Log(ap.akciopont); Debug.Log(ap.akciopont);
Debug.Log("ugynok sorsolas"); Debug.Log("ugynok sorsolas");
ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y); ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y);
ugynok.ugynokMegolveElozoHelyen();
if (eromulepes1.activeSelf == true) if (eromulepes1.activeSelf == true)
{ {
eromulepes2.SetActive(true); eromulepes2.SetActive(true);
@@ -872,7 +876,7 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Nincs el<EFBFBD>g akci<EFBFBD>pontod vagy nem 1 mez?n bel<EFBFBD>l akarsz l<EFBFBD>pni"); Debug.Log("Nincs eleg akciopontod vagy nem 1 mez?n belul akarsz lepni");
} }
} }
} }
@@ -892,7 +896,7 @@ public class movement : MonoBehaviour
tavolsag = math.abs((x + 1) - jelenlegi_x) + math.abs((y + 1) - jelenlegi_y); tavolsag = math.abs((x + 1) - jelenlegi_x) + math.abs((y + 1) - jelenlegi_y);
if (feketepiaclepes1.activeSelf == true & feketepiaclepes2.activeSelf == true) if (feketepiaclepes1.activeSelf == true & feketepiaclepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -919,6 +923,7 @@ public class movement : MonoBehaviour
twoonecount = twoonecount + 1; twoonecount = twoonecount + 1;
Debug.Log(ap.akciopont); Debug.Log("ugynok sorsolas"); Debug.Log(ap.akciopont); Debug.Log("ugynok sorsolas");
ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y); ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y);
ugynok.ugynokMegolveElozoHelyen();
if (feketepiaclepes1.activeSelf == true) if (feketepiaclepes1.activeSelf == true)
{ {
feketepiaclepes2.SetActive(true); feketepiaclepes2.SetActive(true);
@@ -934,12 +939,12 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mez?re");
} }
} }
else else
{ {
Debug.Log("Nincs el<EFBFBD>g akci<EFBFBD>pontod vagy nem 1 mez?n bel<EFBFBD>l akarsz l<EFBFBD>pni"); Debug.Log("Nincs eleg akciopontod vagy nem 1 mez?n belul akarsz lepni");
} }
} }
@@ -960,7 +965,7 @@ public class movement : MonoBehaviour
tavolsag = math.abs((x + 1) - jelenlegi_x) + math.abs((y + 1) - jelenlegi_y); tavolsag = math.abs((x + 1) - jelenlegi_x) + math.abs((y + 1) - jelenlegi_y);
if (metrolepes1.activeSelf == true & metrolepes2.activeSelf == true) if (metrolepes1.activeSelf == true & metrolepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -981,8 +986,10 @@ public class movement : MonoBehaviour
ap.UpdateAkciopont(-tavolsag); ap.UpdateAkciopont(-tavolsag);
} }
threeonecount++; threeonecount++;
Debug.Log(ap.akciopont); Debug.Log("ugynok sorsolas"); Debug.Log(ap.akciopont);
Debug.Log("ugynok sorsolas");
ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y); ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y);
ugynok.ugynokMegolveElozoHelyen();
if (metrolepes1.activeSelf == true) if (metrolepes1.activeSelf == true)
{ {
metrolepes2.SetActive(true); metrolepes2.SetActive(true);
@@ -998,12 +1005,12 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
} }
else else
{ {
Debug.Log("Nincs el<EFBFBD>g akci<EFBFBD>pontod vagy nem 1 mez?n bel<EFBFBD>l akarsz l<EFBFBD>pni"); Debug.Log("Nincs eleg akciopontod vagy nem 1 mez?n belul akarsz lepni");
} }
} }
} }
@@ -1024,7 +1031,7 @@ public class movement : MonoBehaviour
if (szervereklepes1.activeSelf == true & szervereklepes2.activeSelf == true) if (szervereklepes1.activeSelf == true & szervereklepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -1052,6 +1059,7 @@ public class movement : MonoBehaviour
Debug.Log(ap.akciopont); Debug.Log(ap.akciopont);
Debug.Log("ugynok sorsolas"); Debug.Log("ugynok sorsolas");
ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y); ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y);
ugynok.ugynokMegolveElozoHelyen();
if (szervereklepes1.activeSelf == true) if (szervereklepes1.activeSelf == true)
{ {
szervereklepes2.SetActive(true); szervereklepes2.SetActive(true);
@@ -1067,12 +1075,12 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
} }
else else
{ {
Debug.Log("Nincs el<EFBFBD>g akci<EFBFBD>pontod vagy nem 1 mez<EFBFBD>n bel<EFBFBD>l akarsz l<EFBFBD>pni"); Debug.Log("Nincs eleg akciopontod vagy nem 1 mezon belul akarsz lepni");
} }
} }
} }
@@ -1093,7 +1101,7 @@ public class movement : MonoBehaviour
if (kingcasinolepes1.activeSelf == true & kingcasinolepes2.activeSelf == true) if (kingcasinolepes1.activeSelf == true & kingcasinolepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -1116,6 +1124,7 @@ public class movement : MonoBehaviour
Debug.Log(ap.akciopont); Debug.Log(ap.akciopont);
Debug.Log("ugynok sorsolas"); Debug.Log("ugynok sorsolas");
ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y); ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y);
ugynok.ugynokMegolveElozoHelyen();
twotwocount++; twotwocount++;
if (kingcasinolepes1.activeSelf == true) if (kingcasinolepes1.activeSelf == true)
{ {
@@ -1132,12 +1141,12 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
} }
else else
{ {
Debug.Log("Nincs el<EFBFBD>g akci<EFBFBD>pontod vagy nem 1 mez<EFBFBD>n bel<EFBFBD>l akarsz l<EFBFBD>pni"); Debug.Log("Nincs eleg akciopontod vagy nem 1 mezon belul akarsz lepni");
} }
} }
@@ -1159,7 +1168,7 @@ public class movement : MonoBehaviour
if (feltoltolepes1.activeSelf == true & feltoltolepes2.activeSelf == true) if (feltoltolepes1.activeSelf == true & feltoltolepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -1186,6 +1195,7 @@ public class movement : MonoBehaviour
Debug.Log(ap.akciopont); Debug.Log(ap.akciopont);
Debug.Log("ugynok sorsolas"); Debug.Log("ugynok sorsolas");
ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y); ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y);
ugynok.ugynokMegolveElozoHelyen();
threetwocount++; threetwocount++;
if (feltoltolepes1.activeSelf == true) if (feltoltolepes1.activeSelf == true)
{ {
@@ -1202,12 +1212,12 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
} }
else else
{ {
Debug.Log("Nincs el<EFBFBD>g akci<EFBFBD>pontod vagy nem 1 mez?n bel<EFBFBD>l akarsz l<EFBFBD>pni"); Debug.Log("Nincs eleg akciopontod vagy nem 1 mezon belul akarsz lepni");
} }
} }
@@ -1229,7 +1239,7 @@ public class movement : MonoBehaviour
if (kutatolaborlepes1.activeSelf == true & kutatolaborlepes2.activeSelf == true) if (kutatolaborlepes1.activeSelf == true & kutatolaborlepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -1252,6 +1262,7 @@ public class movement : MonoBehaviour
Debug.Log(ap.akciopont); Debug.Log(ap.akciopont);
Debug.Log("ugynok sorsolas"); Debug.Log("ugynok sorsolas");
ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y); ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y);
ugynok.ugynokMegolveElozoHelyen();
onethreecount++; onethreecount++;
if (kutatolaborlepes1.activeSelf == true) if (kutatolaborlepes1.activeSelf == true)
{ {
@@ -1268,12 +1279,12 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
} }
else else
{ {
Debug.Log("Nincs el<EFBFBD>g akci<EFBFBD>pontod vagy nem 1 mez?n bel<EFBFBD>l akarsz l<EFBFBD>pni"); Debug.Log("Nincs eleg akciopontod vagy nem 1 mez?n belul akarsz lepni");
} }
} }
@@ -1295,7 +1306,7 @@ public class movement : MonoBehaviour
if (kriptoklublepes1.activeSelf == true & kriptoklublepes2.activeSelf == true) if (kriptoklublepes1.activeSelf == true & kriptoklublepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -1322,6 +1333,7 @@ public class movement : MonoBehaviour
Debug.Log(ap.akciopont); Debug.Log(ap.akciopont);
Debug.Log("ugynok sorsolas"); Debug.Log("ugynok sorsolas");
ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y); ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y);
ugynok.ugynokMegolveElozoHelyen();
twothreecount++; twothreecount++;
if (kriptoklublepes1.activeSelf == true) if (kriptoklublepes1.activeSelf == true)
{ {
@@ -1338,12 +1350,12 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
} }
else else
{ {
Debug.Log("Nincs el<EFBFBD>g akci<EFBFBD>pontod vagy nem 1 mez?n bel<EFBFBD>l akarsz l<EFBFBD>pni"); Debug.Log("Nincs eleg akciopontod vagy nem 1 mezon belul akarsz lepni");
} }
} }
@@ -1366,7 +1378,7 @@ public class movement : MonoBehaviour
if (cyberplazalepes1.activeSelf == true & cyberplazalepes2.activeSelf == true) if (cyberplazalepes1.activeSelf == true & cyberplazalepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -1389,6 +1401,7 @@ public class movement : MonoBehaviour
Debug.Log(ap.akciopont); Debug.Log(ap.akciopont);
Debug.Log("ugynok sorsolas"); Debug.Log("ugynok sorsolas");
ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y); ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y);
ugynok.ugynokMegolveElozoHelyen();
threethreecount++; threethreecount++;
if (cyberplazalepes1.activeSelf == true) if (cyberplazalepes1.activeSelf == true)
{ {
@@ -1405,12 +1418,12 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
} }
else else
{ {
Debug.Log("Nincs el<EFBFBD>g akci<EFBFBD>pontod vagy nem 1 mez?n bel<EFBFBD>l akarsz l<EFBFBD>pni"); Debug.Log("Nincs eleg akciopontod vagy nem 1 mezon belul akarsz lepni");
} }
} }
@@ -1432,7 +1445,7 @@ public class movement : MonoBehaviour
if (hadiuzemlepes1.activeSelf == true & hadiuzemlepes2.activeSelf == true) if (hadiuzemlepes1.activeSelf == true & hadiuzemlepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -1455,6 +1468,7 @@ public class movement : MonoBehaviour
Debug.Log(ap.akciopont); Debug.Log(ap.akciopont);
Debug.Log("ugynok sorsolas"); Debug.Log("ugynok sorsolas");
ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y); ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y);
ugynok.ugynokMegolveElozoHelyen();
onefourcount++; onefourcount++;
if (hadiuzemlepes1.activeSelf == true) if (hadiuzemlepes1.activeSelf == true)
{ {
@@ -1471,12 +1485,12 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
} }
else else
{ {
Debug.Log("Nincs el<EFBFBD>g akci<EFBFBD>pontod vagy nem 1 mez?n bel<EFBFBD>l akarsz l<EFBFBD>pni"); Debug.Log("Nincs eleg akciopontod vagy nem 1 mez?n belul akarsz lepni");
} }
} }
@@ -1498,7 +1512,7 @@ public class movement : MonoBehaviour
if (konyvtarlepes1.activeSelf == true & konyvtarlepes2.activeSelf == true) if (konyvtarlepes1.activeSelf == true & konyvtarlepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -1521,6 +1535,7 @@ public class movement : MonoBehaviour
Debug.Log(ap.akciopont); Debug.Log(ap.akciopont);
Debug.Log("ugynok sorsolas"); Debug.Log("ugynok sorsolas");
ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y); ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y);
ugynok.ugynokMegolveElozoHelyen();
twofourcount++; twofourcount++;
if (konyvtarlepes1.activeSelf == true) if (konyvtarlepes1.activeSelf == true)
{ {
@@ -1537,12 +1552,12 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
} }
else else
{ {
Debug.Log("Nincs el<EFBFBD>g akci<EFBFBD>pontod vagy nem 1 mez?n bel<EFBFBD>l akarsz l<EFBFBD>pni"); Debug.Log("Nincs eleg akciopontod vagy nem 1 mezon belul akarsz lepni");
} }
} }
@@ -1564,7 +1579,7 @@ public class movement : MonoBehaviour
if (korhazlepes1.activeSelf == true & korhazlepes2.activeSelf == true) if (korhazlepes1.activeSelf == true & korhazlepes2.activeSelf == true)
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez<EFBFBD>re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
else else
{ {
@@ -1587,6 +1602,7 @@ public class movement : MonoBehaviour
Debug.Log(ap.akciopont); Debug.Log(ap.akciopont);
Debug.Log("ugynok sorsolas"); Debug.Log("ugynok sorsolas");
ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y); ugynok.UgynokSorsolas(jelenlegi_x, jelenlegi_y);
ugynok.ugynokMegolveElozoHelyen();
threefourcount++; threefourcount++;
if (korhazlepes1.activeSelf == true) if (korhazlepes1.activeSelf == true)
{ {
@@ -1603,12 +1619,12 @@ public class movement : MonoBehaviour
} }
else else
{ {
Debug.Log("Maximum k<EFBFBD>tszer l<EFBFBD>phetsz egy mez?re"); Debug.Log("Maximum ketszer lephetsz egy mezore");
} }
} }
else else
{ {
Debug.Log("Nincs el<EFBFBD>g akci<EFBFBD>pontod vagy nem 1 mez?n bel<EFBFBD>l akarsz l<EFBFBD>pni"); Debug.Log("Nincs eleg akciopontod vagy nem 1 mezon belul akarsz lepni");
} }
} }

View File

@@ -15,9 +15,9 @@ MonoBehaviour:
m_PixelRect: m_PixelRect:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 43 y: 28
width: 1920 width: 1366
height: 997 height: 673
m_ShowMode: 4 m_ShowMode: 4
m_Title: Hierarchy m_Title: Hierarchy
m_RootView: {fileID: 2} m_RootView: {fileID: 2}
@@ -44,8 +44,8 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 1920 width: 1366
height: 997 height: 673
m_MinSize: {x: 875, y: 300} m_MinSize: {x: 875, y: 300}
m_MaxSize: {x: 10000, y: 10000} m_MaxSize: {x: 10000, y: 10000}
m_UseTopView: 1 m_UseTopView: 1
@@ -69,7 +69,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 1920 width: 1366
height: 30 height: 30
m_MinSize: {x: 0, y: 0} m_MinSize: {x: 0, y: 0}
m_MaxSize: {x: 0, y: 0} m_MaxSize: {x: 0, y: 0}
@@ -90,8 +90,8 @@ MonoBehaviour:
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 977 y: 653
width: 1920 width: 1366
height: 20 height: 20
m_MinSize: {x: 0, y: 0} m_MinSize: {x: 0, y: 0}
m_MaxSize: {x: 0, y: 0} m_MaxSize: {x: 0, y: 0}
@@ -114,12 +114,12 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 30 y: 30
width: 1920 width: 1366
height: 947 height: 623
m_MinSize: {x: 300, y: 200} m_MinSize: {x: 300, y: 200}
m_MaxSize: {x: 24288, y: 16192} m_MaxSize: {x: 24288, y: 16192}
vertical: 0 vertical: 0
controlID: 86 controlID: 20
--- !u!114 &6 --- !u!114 &6
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
@@ -139,12 +139,12 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 1453 width: 1007
height: 947 height: 623
m_MinSize: {x: 200, y: 200} m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 16192, y: 16192} m_MaxSize: {x: 16192, y: 16192}
vertical: 1 vertical: 1
controlID: 66 controlID: 21
--- !u!114 &7 --- !u!114 &7
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
@@ -164,12 +164,12 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 1453 width: 1007
height: 588 height: 388
m_MinSize: {x: 200, y: 100} m_MinSize: {x: 200, y: 100}
m_MaxSize: {x: 16192, y: 8096} m_MaxSize: {x: 16192, y: 8096}
vertical: 0 vertical: 0
controlID: 67 controlID: 22
--- !u!114 &8 --- !u!114 &8
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
@@ -187,8 +187,8 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 263 width: 181
height: 588 height: 388
m_MinSize: {x: 201, y: 221} m_MinSize: {x: 201, y: 221}
m_MaxSize: {x: 4001, y: 4021} m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 13} m_ActualView: {fileID: 13}
@@ -211,12 +211,12 @@ MonoBehaviour:
m_Children: [] m_Children: []
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 263 x: 181
y: 0 y: 0
width: 1190 width: 826
height: 588 height: 388
m_MinSize: {x: 202, y: 221} m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 4002, y: 4021} m_MaxSize: {x: 4000, y: 4000}
m_ActualView: {fileID: 12} m_ActualView: {fileID: 12}
m_Panes: m_Panes:
- {fileID: 14} - {fileID: 14}
@@ -239,9 +239,9 @@ MonoBehaviour:
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 588 y: 388
width: 1453 width: 1007
height: 359 height: 235
m_MinSize: {x: 231, y: 271} m_MinSize: {x: 231, y: 271}
m_MaxSize: {x: 10001, y: 10021} m_MaxSize: {x: 10001, y: 10021}
m_ActualView: {fileID: 15} m_ActualView: {fileID: 15}
@@ -259,23 +259,23 @@ MonoBehaviour:
m_Enabled: 1 m_Enabled: 1
m_EditorHideFlags: 1 m_EditorHideFlags: 1
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name: ConsoleWindow m_Name: InspectorWindow
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Children: [] m_Children: []
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 1453 x: 1007
y: 0 y: 0
width: 467 width: 359
height: 947 height: 623
m_MinSize: {x: 101, y: 121} m_MinSize: {x: 276, y: 71}
m_MaxSize: {x: 4001, y: 4021} m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 16} m_ActualView: {fileID: 17}
m_Panes: m_Panes:
- {fileID: 17} - {fileID: 17}
- {fileID: 16} - {fileID: 16}
m_Selected: 1 m_Selected: 0
m_LastSelected: 0 m_LastSelected: 1
--- !u!114 &12 --- !u!114 &12
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
@@ -296,10 +296,10 @@ MonoBehaviour:
m_Tooltip: m_Tooltip:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 263 x: 181
y: 73 y: 86
width: 1188 width: 824
height: 567 height: 367
m_ViewDataDictionary: {fileID: 0} m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas: m_OverlayCanvas:
m_LastAppliedPresetName: Default m_LastAppliedPresetName: Default
@@ -310,7 +310,7 @@ MonoBehaviour:
m_ShowGizmos: 0 m_ShowGizmos: 0
m_TargetDisplay: 0 m_TargetDisplay: 0
m_ClearColor: {r: 0, g: 0, b: 0, a: 0} m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
m_TargetSize: {x: 1188, y: 546} m_TargetSize: {x: 615, y: 346}
m_TextureFilterMode: 0 m_TextureFilterMode: 0
m_TextureHideFlags: 61 m_TextureHideFlags: 61
m_RenderIMGUI: 1 m_RenderIMGUI: 1
@@ -325,10 +325,10 @@ MonoBehaviour:
m_VRangeLocked: 0 m_VRangeLocked: 0
hZoomLockedByDefault: 0 hZoomLockedByDefault: 0
vZoomLockedByDefault: 0 vZoomLockedByDefault: 0
m_HBaseRangeMin: -594 m_HBaseRangeMin: -307.5
m_HBaseRangeMax: 594 m_HBaseRangeMax: 307.5
m_VBaseRangeMin: -273 m_VBaseRangeMin: -173
m_VBaseRangeMax: 273 m_VBaseRangeMax: 173
m_HAllowExceedBaseRangeMin: 1 m_HAllowExceedBaseRangeMin: 1
m_HAllowExceedBaseRangeMax: 1 m_HAllowExceedBaseRangeMax: 1
m_VAllowExceedBaseRangeMin: 1 m_VAllowExceedBaseRangeMin: 1
@@ -346,23 +346,23 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 21 y: 21
width: 1188 width: 824
height: 546 height: 346
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Translation: {x: 594, y: 273} m_Translation: {x: 412, y: 173}
m_MarginLeft: 0 m_MarginLeft: 0
m_MarginRight: 0 m_MarginRight: 0
m_MarginTop: 0 m_MarginTop: 0
m_MarginBottom: 0 m_MarginBottom: 0
m_LastShownAreaInsideMargins: m_LastShownAreaInsideMargins:
serializedVersion: 2 serializedVersion: 2
x: -594 x: -412
y: -273 y: -173
width: 1188 width: 824
height: 546 height: 346
m_MinimalGUI: 1 m_MinimalGUI: 1
m_defaultScale: 1 m_defaultScale: 1
m_LastWindowPixelSize: {x: 1188, y: 567} m_LastWindowPixelSize: {x: 824, y: 367}
m_ClearInEditMode: 1 m_ClearInEditMode: 1
m_NoCameraWarning: 1 m_NoCameraWarning: 1
m_LowResolutionForAspectRatios: 01000000000000000000 m_LowResolutionForAspectRatios: 01000000000000000000
@@ -389,9 +389,9 @@ MonoBehaviour:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 73 y: 86
width: 262 width: 180
height: 567 height: 367
m_ViewDataDictionary: {fileID: 0} m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas: m_OverlayCanvas:
m_LastAppliedPresetName: Default m_LastAppliedPresetName: Default
@@ -401,7 +401,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0} scrollPos: {x: 0, y: 0}
m_SelectedIDs: m_SelectedIDs:
m_LastClickedID: 0 m_LastClickedID: 0
m_ExpandedIDs: faf5ffff14fbffff m_ExpandedIDs: 28fbffff
m_RenameOverlay: m_RenameOverlay:
m_UserAcceptedRename: 0 m_UserAcceptedRename: 0
m_Name: m_Name:
@@ -445,10 +445,10 @@ MonoBehaviour:
m_Tooltip: m_Tooltip:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 187 x: 181
y: 86 y: 86
width: 845 width: 824
height: 445 height: 367
m_ViewDataDictionary: {fileID: 0} m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas: m_OverlayCanvas:
m_LastAppliedPresetName: Default m_LastAppliedPresetName: Default
@@ -698,16 +698,16 @@ MonoBehaviour:
m_WindowGUID: cc27987af1a868c49b0894db9c0f5429 m_WindowGUID: cc27987af1a868c49b0894db9c0f5429
m_Gizmos: 1 m_Gizmos: 1
m_OverrideSceneCullingMask: 6917529027641081856 m_OverrideSceneCullingMask: 6917529027641081856
m_SceneIsLit: 1 m_SceneIsLit: 0
m_SceneLighting: 1 m_SceneLighting: 1
m_2DMode: 1 m_2DMode: 1
m_isRotationLocked: 0 m_isRotationLocked: 0
m_PlayAudio: 0 m_PlayAudio: 0
m_AudioPlay: 0 m_AudioPlay: 0
m_Position: m_Position:
m_Target: {x: 343.27173, y: 345.1628, z: 1.9150982} m_Target: {x: -8.945042, y: -2.5416188, z: 0.0057649035}
speed: 2 speed: 2
m_Value: {x: 343.27173, y: 345.1628, z: 1.9150982} m_Value: {x: -8.945042, y: -2.5416188, z: 0.0057649035}
m_RenderMode: 0 m_RenderMode: 0
m_CameraMode: m_CameraMode:
drawMode: 0 drawMode: 0
@@ -758,9 +758,9 @@ MonoBehaviour:
speed: 2 speed: 2
m_Value: {x: 0, y: 0, z: 0, w: 1} m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size: m_Size:
m_Target: 344.6367 m_Target: 7.5217633
speed: 2 speed: 2
m_Value: 344.6367 m_Value: 7.5217633
m_Ortho: m_Ortho:
m_Target: 1 m_Target: 1
speed: 2 speed: 2
@@ -806,9 +806,9 @@ MonoBehaviour:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 661 y: 474
width: 1452 width: 1006
height: 338 height: 214
m_ViewDataDictionary: {fileID: 0} m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas: m_OverlayCanvas:
m_LastAppliedPresetName: Default m_LastAppliedPresetName: Default
@@ -834,14 +834,14 @@ MonoBehaviour:
m_LastFolders: m_LastFolders:
- Assets/Scripts - Assets/Scripts
m_LastFoldersGridSize: 66 m_LastFoldersGridSize: 66
m_LastProjectPath: E:\dev\find the source\projekt\FindTheSource m_LastProjectPath: /home/tom/Documents/dev/find the source
m_LockTracker: m_LockTracker:
m_IsLocked: 0 m_IsLocked: 0
m_FolderTreeState: m_FolderTreeState:
scrollPos: {x: 0, y: 0} scrollPos: {x: 0, y: 0}
m_SelectedIDs: 406f0000 m_SelectedIDs: 0e7a0000
m_LastClickedID: 28480 m_LastClickedID: 31246
m_ExpandedIDs: 00000000346f0000 m_ExpandedIDs: 00000000f879000000ca9a3b
m_RenameOverlay: m_RenameOverlay:
m_UserAcceptedRename: 0 m_UserAcceptedRename: 0
m_Name: m_Name:
@@ -869,7 +869,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0} scrollPos: {x: 0, y: 0}
m_SelectedIDs: m_SelectedIDs:
m_LastClickedID: 0 m_LastClickedID: 0
m_ExpandedIDs: 00000000346f0000 m_ExpandedIDs: 00000000f8790000
m_RenameOverlay: m_RenameOverlay:
m_UserAcceptedRename: 0 m_UserAcceptedRename: 0
m_Name: m_Name:
@@ -945,10 +945,10 @@ MonoBehaviour:
m_Tooltip: m_Tooltip:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 1453 x: 1007
y: 73 y: 86
width: 466 width: 358
height: 926 height: 602
m_ViewDataDictionary: {fileID: 0} m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas: m_OverlayCanvas:
m_LastAppliedPresetName: Default m_LastAppliedPresetName: Default
@@ -973,10 +973,10 @@ MonoBehaviour:
m_Tooltip: m_Tooltip:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 1453 x: 1007
y: 73 y: 86
width: 466 width: 358
height: 926 height: 602
m_ViewDataDictionary: {fileID: 0} m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas: m_OverlayCanvas:
m_LastAppliedPresetName: Default m_LastAppliedPresetName: Default
@@ -987,7 +987,7 @@ MonoBehaviour:
m_CachedPref: -160 m_CachedPref: -160
m_ControlHash: -371814159 m_ControlHash: -371814159
m_PrefName: Preview_InspectorPreview m_PrefName: Preview_InspectorPreview
m_LastInspectedObjectInstanceID: 12452 m_LastInspectedObjectInstanceID: -1
m_LastVerticalScrollValue: 0 m_LastVerticalScrollValue: 0
m_GlobalObjectId: m_GlobalObjectId:
m_InspectorMode: 0 m_InspectorMode: 0