nyomozas hack
This commit is contained in:
@@ -11469,7 +11469,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: 1
|
||||
m_text:
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
@@ -18106,7 +18106,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: 1
|
||||
m_text:
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
@@ -28249,7 +28249,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: 1
|
||||
m_text:
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using TMPro;
|
||||
using System.Linq;
|
||||
using System;
|
||||
|
||||
public class Akciok : MonoBehaviour
|
||||
{
|
||||
@@ -99,7 +100,7 @@ public class Akciok : MonoBehaviour
|
||||
int atirandox = movement.jelenlegi_x - 1;
|
||||
int atirandoy = movement.jelenlegi_y - 1;
|
||||
|
||||
if (nyomozasok[atirandox, atirandoy] == "nyomozott") {
|
||||
if (nyomozasok[atirandoy, atirandox] == "nyomozott") {
|
||||
Debug.Log("Itt mar nyomoztal");
|
||||
return;
|
||||
} else {
|
||||
@@ -165,17 +166,25 @@ public class Akciok : MonoBehaviour
|
||||
return;
|
||||
}
|
||||
|
||||
//egy sorban lett e ketszer nyomozva
|
||||
for (int i = 0; i < 3; i++) {
|
||||
Debug.Log("Belep for");
|
||||
if (nyomozasok[movement.jelenlegi_y, i] == "nyomozott") {
|
||||
count++;
|
||||
Debug.Log("count: " + count);
|
||||
int i2 = 0;
|
||||
try {
|
||||
//egy sorban lett e ketszer nyomozva
|
||||
for (int i = 0; i < 3; i++) {
|
||||
//Debug.Log("Belep for");
|
||||
if (nyomozasok[movement.jelenlegi_y-1, i] == "nyomozott") {
|
||||
count++;
|
||||
Debug.Log("count: " + count);
|
||||
i2= i;
|
||||
}
|
||||
}
|
||||
}catch(IndexOutOfRangeException e) {
|
||||
Debug.Log("hiba volt");
|
||||
Debug.Log("i: " + i2 + " y" + movement.jelenlegi_y);
|
||||
}
|
||||
|
||||
|
||||
//forras helyenek bejelolese
|
||||
if(count >= 2 && !hackelt_sorok.Contains(movement.jelenlegi_y)){
|
||||
if(count >= 2) { //&& !hackelt_sorok.Contains(movement.jelenlegi_y)
|
||||
Debug.Log("belep");
|
||||
if (movement.jelenlegi_y == 1){
|
||||
elso_sor_text.text = "X";
|
||||
@@ -204,8 +213,8 @@ public class Akciok : MonoBehaviour
|
||||
}
|
||||
}
|
||||
}
|
||||
ap.akciopont -= upgrade.hack[upgrade.getHackIndex()]; //ap koltseg levonasa
|
||||
}
|
||||
|
||||
ap.akciopont -= upgrade.hack[upgrade.getHackIndex()]; //ap koltseg levonasa
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user