ugynok rework
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -117,6 +117,7 @@ public class Dice : MonoBehaviour {
|
||||
adrenalinMegerosites = true;
|
||||
}else{
|
||||
adrenalinMegerosites = false;
|
||||
HelyszinKiBekapcs(false); //nem hasznalja fel ezert visszakapcsoljuk
|
||||
}
|
||||
|
||||
adrenalinHasznalat.gameObject.SetActive(false);
|
||||
|
||||
@@ -14,6 +14,7 @@ public class Targyak : MonoBehaviour
|
||||
private Energia energia;
|
||||
private Ugynok ugynok;
|
||||
private Dice dice;
|
||||
private jatekmanager jatekmanager;
|
||||
public TMP_InputField kocka1ertek;
|
||||
public TMP_InputField kocka2ertek;
|
||||
public int ujertek1;
|
||||
@@ -57,6 +58,7 @@ public class Targyak : MonoBehaviour
|
||||
energia = FindObjectOfType<Energia>();
|
||||
ugynok = FindObjectOfType<Ugynok>();
|
||||
dice = FindObjectOfType<Dice>();
|
||||
jatekmanager = FindObjectOfType<jatekmanager>();
|
||||
}
|
||||
|
||||
public void RandomTargy()
|
||||
@@ -198,9 +200,15 @@ public class Targyak : MonoBehaviour
|
||||
lathatatlanFelhasznalva.text = "X";
|
||||
}
|
||||
|
||||
public void DroidGepagyu() { //kesz
|
||||
//ugynok cucc
|
||||
ugynok.canKill = true; //barhol meg tud olni ha kattint
|
||||
public void DroidGepagyu() {
|
||||
//deaktivalni minden objectet kiveve a ugynok text boxokat es addig nem vissza aktivalni amig nem kattintott ra valamelyikre
|
||||
//ugynok.canKill = true; //barhol meg tud olni ha kattint
|
||||
|
||||
//deaktivalas
|
||||
jatekmanager.ugynokDeaktivalas(true);
|
||||
|
||||
Debug.Log("kattints egy ugynok csapatra!");
|
||||
|
||||
droidgepagyu = 0; //targy elvesztese
|
||||
|
||||
Debug.Log("droid felhasznalva");
|
||||
|
||||
@@ -5,39 +5,48 @@ using TMPro;
|
||||
|
||||
public class Ugynok : MonoBehaviour
|
||||
{
|
||||
private Akciok akciok;
|
||||
private Upgrade upgrade;
|
||||
private jatekmanager jatekmanager;
|
||||
|
||||
public TMP_Text[] oneone;
|
||||
public BoxCollider2D[] oneoneCollider;
|
||||
//public BoxCollider2D[] oneoneCollider;
|
||||
public TMP_Text[] twoone;
|
||||
public BoxCollider2D[] twooneCollider;
|
||||
//public BoxCollider2D[] twooneCollider;
|
||||
public TMP_Text[] threeone;
|
||||
public BoxCollider2D[] threeoneCollider;
|
||||
//public BoxCollider2D[] threeoneCollider;
|
||||
public TMP_Text[] onetwo;
|
||||
public BoxCollider2D[] onetwoCollider;
|
||||
//public BoxCollider2D[] onetwoCollider;
|
||||
public TMP_Text[] twotwo;
|
||||
public BoxCollider2D[] twotwoCollider;
|
||||
//public BoxCollider2D[] twotwoCollider;
|
||||
public TMP_Text[] threetwo;
|
||||
public BoxCollider2D[] threetwoCollider;
|
||||
//public BoxCollider2D[] threetwoCollider;
|
||||
public TMP_Text[] onethree;
|
||||
public BoxCollider2D[] onethreeCollider;
|
||||
//public BoxCollider2D[] onethreeCollider;
|
||||
public TMP_Text[] twothree;
|
||||
public BoxCollider2D[] twothreeCollider;
|
||||
//public BoxCollider2D[] twothreeCollider;
|
||||
public TMP_Text[] threethree;
|
||||
public BoxCollider2D[] threethreeCollider;
|
||||
//public BoxCollider2D[] threethreeCollider;
|
||||
public TMP_Text[] onefour;
|
||||
public BoxCollider2D[] onefourCollider;
|
||||
//public BoxCollider2D[] onefourCollider;
|
||||
public TMP_Text[] twofour;
|
||||
public BoxCollider2D[] twofourCollider;
|
||||
//public BoxCollider2D[] twofourCollider;
|
||||
public TMP_Text[] threefour;
|
||||
public BoxCollider2D[] threefourCollider;
|
||||
//public BoxCollider2D[] threefourCollider;
|
||||
|
||||
public bool droidagyuAktivalva = false;
|
||||
|
||||
public bool canKill = false;
|
||||
public bool canShoot = false; //harchoz bool
|
||||
public void setCanKillTrue()
|
||||
{
|
||||
canKill = true;
|
||||
}
|
||||
public void setCanKillTrue(){ canKill = true; }
|
||||
public Camera maincamera;
|
||||
|
||||
private void Awake() {
|
||||
akciok = FindObjectOfType<Akciok>();
|
||||
upgrade = FindObjectOfType<Upgrade>();
|
||||
jatekmanager = FindObjectOfType<jatekmanager>();
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
for (int i = 0; i < oneone.Length; i++)
|
||||
@@ -93,7 +102,217 @@ public class Ugynok : MonoBehaviour
|
||||
|
||||
}
|
||||
|
||||
private void Update()
|
||||
public void UgynokSorsolas(int x, int y)
|
||||
{
|
||||
if (x == 1 && y == 1)
|
||||
{
|
||||
if (oneone[0].text.Equals(""))
|
||||
{
|
||||
oneone[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (oneone[1].text.Equals(""))
|
||||
{
|
||||
oneone[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (oneone[2].text.Equals(""))
|
||||
{
|
||||
oneone[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 1 && y == 2)
|
||||
{
|
||||
if (onetwo[0].text.Equals(""))
|
||||
{
|
||||
onetwo[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (onetwo[1].text.Equals(""))
|
||||
{
|
||||
onetwo[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (onetwo[2].text.Equals(""))
|
||||
{
|
||||
onetwo[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 1 && y == 3)
|
||||
{
|
||||
if (onethree[0].text.Equals(""))
|
||||
{
|
||||
onethree[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (onethree[1].text.Equals(""))
|
||||
{
|
||||
onethree[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (onethree[2].text.Equals(""))
|
||||
{
|
||||
onethree[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 1 && y == 4)
|
||||
{
|
||||
if (onefour[0].text.Equals(""))
|
||||
{
|
||||
onefour[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (onefour[1].text.Equals(""))
|
||||
{
|
||||
onefour[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (onefour[2].text.Equals(""))
|
||||
{
|
||||
onefour[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 2 && y == 1)
|
||||
{
|
||||
if (twoone[0].text.Equals(""))
|
||||
{
|
||||
twoone[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twoone[1].text.Equals(""))
|
||||
{
|
||||
twoone[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twoone[2].text.Equals(""))
|
||||
{
|
||||
twoone[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 2 && y == 2)
|
||||
{
|
||||
if (twotwo[0].text.Equals(""))
|
||||
{
|
||||
twotwo[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twotwo[1].text.Equals(""))
|
||||
{
|
||||
twotwo[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twotwo[2].text.Equals(""))
|
||||
{
|
||||
twotwo[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 2 && y == 3)
|
||||
{
|
||||
if (twothree[0].text.Equals(""))
|
||||
{
|
||||
twothree[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twothree[1].text.Equals(""))
|
||||
{
|
||||
twothree[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twothree[2].text.Equals(""))
|
||||
{
|
||||
twothree[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 2 && y == 4)
|
||||
{
|
||||
if (twofour[0].text.Equals(""))
|
||||
{
|
||||
twofour[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twofour[1].text.Equals(""))
|
||||
{
|
||||
twofour[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twofour[2].text.Equals(""))
|
||||
{
|
||||
twofour[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 3 && y == 1)
|
||||
{
|
||||
if (threeone[0].text.Equals(""))
|
||||
{
|
||||
threeone[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threeone[1].text.Equals(""))
|
||||
{
|
||||
threeone[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threeone[2].text.Equals(""))
|
||||
{
|
||||
threeone[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 3 && y == 2)
|
||||
{
|
||||
if (threetwo[0].text.Equals(""))
|
||||
{
|
||||
threetwo[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threetwo[1].text.Equals(""))
|
||||
{
|
||||
threetwo[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threetwo[2].text.Equals(""))
|
||||
{
|
||||
threetwo[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 3 && y == 3)
|
||||
{
|
||||
if (threethree[0].text.Equals(""))
|
||||
{
|
||||
threethree[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threethree[1].text.Equals(""))
|
||||
{
|
||||
threethree[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threethree[2].text.Equals(""))
|
||||
{
|
||||
threethree[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 3 && y == 4)
|
||||
{
|
||||
if (threefour[0].text.Equals(""))
|
||||
{
|
||||
threefour[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threefour[1].text.Equals(""))
|
||||
{
|
||||
threefour[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threefour[2].text.Equals(""))
|
||||
{
|
||||
threefour[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void ugynokOles(TMP_Text ugynokText){
|
||||
if(ugynokText.text.Equals("")){ //ha nincs ott ugynok csapat ne csinaljon semmit
|
||||
Debug.Log("itt nincs ugynok csapat!!");
|
||||
return;
|
||||
}
|
||||
|
||||
if(!droidagyuAktivalva){ //toltenyek levonasa
|
||||
int ugynokcsapatletszama = int.Parse(ugynokText.text);
|
||||
if(ugynokcsapatletszama > akciok.betarazott_tolteny / upgrade.harc[upgrade.getHarcIndex()]){ //ha nincs eleg tolteny
|
||||
Debug.Log("nincs eleg tolteny");
|
||||
return;
|
||||
}
|
||||
akciok.Loves(ugynokcsapatletszama / upgrade.hack[upgrade.getHackIndex()]);
|
||||
}
|
||||
|
||||
ugynokText.text = "X"; //ugynok csapat megolve
|
||||
|
||||
//minden vissza kapcsolasa
|
||||
jatekmanager.ugynokDeaktivalas(false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* private void Update()
|
||||
{
|
||||
if(canShoot){
|
||||
if(oneone[0].text.Equals("")){
|
||||
@@ -551,188 +770,5 @@ public class Ugynok : MonoBehaviour
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void UgynokSorsolas(int x, int y)
|
||||
{
|
||||
if (x == 1 && y == 1)
|
||||
{
|
||||
if (oneone[0].text.Equals(""))
|
||||
{
|
||||
oneone[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (oneone[1].text.Equals(""))
|
||||
{
|
||||
oneone[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (oneone[2].text.Equals(""))
|
||||
{
|
||||
oneone[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 1 && y == 2)
|
||||
{
|
||||
if (onetwo[0].text.Equals(""))
|
||||
{
|
||||
onetwo[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (onetwo[1].text.Equals(""))
|
||||
{
|
||||
onetwo[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (onetwo[2].text.Equals(""))
|
||||
{
|
||||
onetwo[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 1 && y == 3)
|
||||
{
|
||||
if (onethree[0].text.Equals(""))
|
||||
{
|
||||
onethree[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (onethree[1].text.Equals(""))
|
||||
{
|
||||
onethree[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (onethree[2].text.Equals(""))
|
||||
{
|
||||
onethree[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 1 && y == 4)
|
||||
{
|
||||
if (onefour[0].text.Equals(""))
|
||||
{
|
||||
onefour[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (onefour[1].text.Equals(""))
|
||||
{
|
||||
onefour[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (onefour[2].text.Equals(""))
|
||||
{
|
||||
onefour[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 2 && y == 1)
|
||||
{
|
||||
if (twoone[0].text.Equals(""))
|
||||
{
|
||||
twoone[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twoone[1].text.Equals(""))
|
||||
{
|
||||
twoone[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twoone[2].text.Equals(""))
|
||||
{
|
||||
twoone[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 2 && y == 2)
|
||||
{
|
||||
if (twotwo[0].text.Equals(""))
|
||||
{
|
||||
twotwo[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twotwo[1].text.Equals(""))
|
||||
{
|
||||
twotwo[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twotwo[2].text.Equals(""))
|
||||
{
|
||||
twotwo[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 2 && y == 3)
|
||||
{
|
||||
if (twothree[0].text.Equals(""))
|
||||
{
|
||||
twothree[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twothree[1].text.Equals(""))
|
||||
{
|
||||
twothree[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twothree[2].text.Equals(""))
|
||||
{
|
||||
twothree[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 2 && y == 4)
|
||||
{
|
||||
if (twofour[0].text.Equals(""))
|
||||
{
|
||||
twofour[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twofour[1].text.Equals(""))
|
||||
{
|
||||
twofour[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (twofour[2].text.Equals(""))
|
||||
{
|
||||
twofour[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 3 && y == 1)
|
||||
{
|
||||
if (threeone[0].text.Equals(""))
|
||||
{
|
||||
threeone[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threeone[1].text.Equals(""))
|
||||
{
|
||||
threeone[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threeone[2].text.Equals(""))
|
||||
{
|
||||
threeone[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 3 && y == 2)
|
||||
{
|
||||
if (threetwo[0].text.Equals(""))
|
||||
{
|
||||
threetwo[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threetwo[1].text.Equals(""))
|
||||
{
|
||||
threetwo[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threetwo[2].text.Equals(""))
|
||||
{
|
||||
threetwo[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 3 && y == 3)
|
||||
{
|
||||
if (threethree[0].text.Equals(""))
|
||||
{
|
||||
threethree[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threethree[1].text.Equals(""))
|
||||
{
|
||||
threethree[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threethree[2].text.Equals(""))
|
||||
{
|
||||
threethree[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 3 && y == 4)
|
||||
{
|
||||
if (threefour[0].text.Equals(""))
|
||||
{
|
||||
threefour[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threefour[1].text.Equals(""))
|
||||
{
|
||||
threefour[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
else if (threefour[2].text.Equals(""))
|
||||
{
|
||||
threefour[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
@@ -1,9 +1,7 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Sockets;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class jatekmanager : MonoBehaviour
|
||||
{
|
||||
@@ -20,7 +18,6 @@ public class jatekmanager : MonoBehaviour
|
||||
public GameObject rolldice;
|
||||
public GameObject test;
|
||||
|
||||
|
||||
//script-ek implementalasa
|
||||
private Elet elet;
|
||||
private Akciok akciok;
|
||||
@@ -45,6 +42,7 @@ public class jatekmanager : MonoBehaviour
|
||||
public TMP_Text[] onefour;
|
||||
public TMP_Text[] twofour;
|
||||
public TMP_Text[] threefour;
|
||||
public Button helyszinaktivalasBtn;
|
||||
|
||||
//nyert es vesztett bool lethrehozas
|
||||
public bool jatekosnyert = false;
|
||||
@@ -63,6 +61,48 @@ public class jatekmanager : MonoBehaviour
|
||||
source = FindObjectOfType<Source>();
|
||||
}
|
||||
|
||||
public void ugynokDeaktivalas(bool kikapcsolas){
|
||||
energiafejlesztés.SetActive(kikapcsolas);
|
||||
akciofejlesztés.SetActive(kikapcsolas);
|
||||
harcfejlesztés.SetActive(kikapcsolas);
|
||||
ujradobasfejlesztés.SetActive(kikapcsolas);
|
||||
hackfejlesztés.SetActive(kikapcsolas);
|
||||
kovetkezokor.SetActive(kikapcsolas);
|
||||
betarazas.SetActive(kikapcsolas);
|
||||
nyomozas.SetActive(kikapcsolas);
|
||||
hackeles.SetActive(kikapcsolas);
|
||||
|
||||
//roll dice gomb
|
||||
rolldice.SetActive(kikapcsolas);
|
||||
//kovetkezo kor
|
||||
kovetkezokor.SetActive(kikapcsolas);
|
||||
//helyszinaktivalas
|
||||
helyszinaktivalasBtn.gameObject.SetActive(kikapcsolas);
|
||||
|
||||
|
||||
movement.oneone_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.onetwo_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.onethree_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.onefour_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.twoone_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.twotwo_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.twothree_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.twofour_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.threeone_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.threetwo_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.threethree_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.threefour_Collider.gameObject.SetActive(kikapcsolas);
|
||||
|
||||
targyak.hackerFelhasznalva.GetComponent<Button>().gameObject.SetActive(kikapcsolas);
|
||||
targyak.lathatatlanFelhasznalva.GetComponent<Button>().gameObject.SetActive(kikapcsolas);
|
||||
targyak.droidFelhasznalva.GetComponent<Button>().gameObject.SetActive(kikapcsolas);
|
||||
targyak.matavFelhasznalva.GetComponent<Button>().gameObject.SetActive(kikapcsolas);
|
||||
targyak.alomhozoFelhasznalva.GetComponent<Button>().gameObject.SetActive(kikapcsolas);
|
||||
|
||||
dice.dice1btnBtn.gameObject.SetActive(kikapcsolas);
|
||||
dice.dice2btnBtn.gameObject.SetActive(kikapcsolas);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@ MonoBehaviour:
|
||||
width: 1920
|
||||
height: 997
|
||||
m_ShowMode: 4
|
||||
m_Title: Scene
|
||||
m_Title: Game
|
||||
m_RootView: {fileID: 2}
|
||||
m_MinSize: {x: 875, y: 300}
|
||||
m_MaxSize: {x: 10000, y: 10000}
|
||||
@@ -119,7 +119,7 @@ MonoBehaviour:
|
||||
m_MinSize: {x: 300, y: 200}
|
||||
m_MaxSize: {x: 24288, y: 16192}
|
||||
vertical: 0
|
||||
controlID: 17
|
||||
controlID: 57
|
||||
--- !u!114 &6
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -139,12 +139,12 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1442
|
||||
width: 1362
|
||||
height: 947
|
||||
m_MinSize: {x: 200, y: 200}
|
||||
m_MaxSize: {x: 16192, y: 16192}
|
||||
vertical: 1
|
||||
controlID: 18
|
||||
controlID: 58
|
||||
--- !u!114 &7
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -164,12 +164,12 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1442
|
||||
width: 1362
|
||||
height: 665
|
||||
m_MinSize: {x: 200, y: 100}
|
||||
m_MaxSize: {x: 16192, y: 8096}
|
||||
vertical: 0
|
||||
controlID: 19
|
||||
controlID: 43
|
||||
--- !u!114 &8
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -187,10 +187,10 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 233
|
||||
width: 192
|
||||
height: 665
|
||||
m_MinSize: {x: 200, y: 200}
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_MinSize: {x: 201, y: 221}
|
||||
m_MaxSize: {x: 4001, y: 4021}
|
||||
m_ActualView: {fileID: 13}
|
||||
m_Panes:
|
||||
- {fileID: 13}
|
||||
@@ -211,9 +211,9 @@ MonoBehaviour:
|
||||
m_Children: []
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 233
|
||||
x: 192
|
||||
y: 0
|
||||
width: 1209
|
||||
width: 1170
|
||||
height: 665
|
||||
m_MinSize: {x: 202, y: 221}
|
||||
m_MaxSize: {x: 4002, y: 4021}
|
||||
@@ -240,7 +240,7 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 665
|
||||
width: 1442
|
||||
width: 1362
|
||||
height: 282
|
||||
m_MinSize: {x: 231, y: 271}
|
||||
m_MaxSize: {x: 10001, y: 10021}
|
||||
@@ -259,23 +259,23 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name: InspectorWindow
|
||||
m_Name: ConsoleWindow
|
||||
m_EditorClassIdentifier:
|
||||
m_Children: []
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 1442
|
||||
x: 1362
|
||||
y: 0
|
||||
width: 478
|
||||
width: 558
|
||||
height: 947
|
||||
m_MinSize: {x: 276, y: 71}
|
||||
m_MaxSize: {x: 4001, y: 4021}
|
||||
m_ActualView: {fileID: 17}
|
||||
m_MinSize: {x: 100, y: 100}
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_ActualView: {fileID: 16}
|
||||
m_Panes:
|
||||
- {fileID: 17}
|
||||
- {fileID: 16}
|
||||
m_Selected: 0
|
||||
m_LastSelected: 1
|
||||
m_Selected: 1
|
||||
m_LastSelected: 0
|
||||
--- !u!114 &12
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -296,9 +296,9 @@ MonoBehaviour:
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 233
|
||||
x: 192
|
||||
y: 73
|
||||
width: 1207
|
||||
width: 1168
|
||||
height: 644
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
@@ -310,7 +310,7 @@ MonoBehaviour:
|
||||
m_ShowGizmos: 0
|
||||
m_TargetDisplay: 0
|
||||
m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_TargetSize: {x: 1207, y: 623}
|
||||
m_TargetSize: {x: 1168, y: 623}
|
||||
m_TextureFilterMode: 0
|
||||
m_TextureHideFlags: 61
|
||||
m_RenderIMGUI: 1
|
||||
@@ -325,8 +325,8 @@ MonoBehaviour:
|
||||
m_VRangeLocked: 0
|
||||
hZoomLockedByDefault: 0
|
||||
vZoomLockedByDefault: 0
|
||||
m_HBaseRangeMin: -603.5
|
||||
m_HBaseRangeMax: 603.5
|
||||
m_HBaseRangeMin: -584
|
||||
m_HBaseRangeMax: 584
|
||||
m_VBaseRangeMin: -311.5
|
||||
m_VBaseRangeMax: 311.5
|
||||
m_HAllowExceedBaseRangeMin: 1
|
||||
@@ -337,7 +337,7 @@ MonoBehaviour:
|
||||
m_HSlider: 0
|
||||
m_VSlider: 0
|
||||
m_IgnoreScrollWheelUntilClicked: 0
|
||||
m_EnableMouseInput: 1
|
||||
m_EnableMouseInput: 0
|
||||
m_EnableSliderZoomHorizontal: 0
|
||||
m_EnableSliderZoomVertical: 0
|
||||
m_UniformScale: 1
|
||||
@@ -346,23 +346,23 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 21
|
||||
width: 1207
|
||||
width: 1168
|
||||
height: 623
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Translation: {x: 603.5, y: 311.5}
|
||||
m_Translation: {x: 584, y: 311.5}
|
||||
m_MarginLeft: 0
|
||||
m_MarginRight: 0
|
||||
m_MarginTop: 0
|
||||
m_MarginBottom: 0
|
||||
m_LastShownAreaInsideMargins:
|
||||
serializedVersion: 2
|
||||
x: -603.5
|
||||
x: -584
|
||||
y: -311.5
|
||||
width: 1207
|
||||
width: 1168
|
||||
height: 623
|
||||
m_MinimalGUI: 1
|
||||
m_defaultScale: 1
|
||||
m_LastWindowPixelSize: {x: 1207, y: 644}
|
||||
m_LastWindowPixelSize: {x: 1168, y: 644}
|
||||
m_ClearInEditMode: 1
|
||||
m_NoCameraWarning: 1
|
||||
m_LowResolutionForAspectRatios: 01000000000000000000
|
||||
@@ -390,7 +390,7 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 73
|
||||
width: 232
|
||||
width: 191
|
||||
height: 644
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
@@ -398,10 +398,10 @@ MonoBehaviour:
|
||||
m_SaveData: []
|
||||
m_SceneHierarchy:
|
||||
m_TreeViewState:
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs:
|
||||
m_LastClickedID: 0
|
||||
m_ExpandedIDs: 1cfbffff7c700000c0770000
|
||||
scrollPos: {x: 0, y: 300}
|
||||
m_SelectedIDs: 8e6c0000
|
||||
m_LastClickedID: 27790
|
||||
m_ExpandedIDs: 28fbffffb66b0000ea6b00001a6c00001e6c00003c6c00005e6c0000186d00006e6d0000806d0000046e0000366e0000c46e0000306f0000386f00004e6f0000626f00006a6f0000ea6f00001470000066700000ca70000032710000b2710000d2710000fa710000167200004a7200006e72000088720000a6720000b8720000f4720000fc7200000a7300002a7300005473000092730000c473000052740000dc7400000c750000267500004a750000dc7500001a760000547600005c76000060760000ce760000f07600002c7700004e7700008e7700009e770000a6770000aa770000bc770000c4770000
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
@@ -445,9 +445,9 @@ MonoBehaviour:
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 233
|
||||
x: 192
|
||||
y: 73
|
||||
width: 1207
|
||||
width: 1168
|
||||
height: 644
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
@@ -705,9 +705,9 @@ MonoBehaviour:
|
||||
m_PlayAudio: 0
|
||||
m_AudioPlay: 0
|
||||
m_Position:
|
||||
m_Target: {x: -4.063988, y: -1.0165341, z: -0.13052095}
|
||||
m_Target: {x: -4.9125323, y: -0.30520058, z: 0.077698514}
|
||||
speed: 2
|
||||
m_Value: {x: -3.9455783, y: -0.9438178, z: -0.12748456}
|
||||
m_Value: {x: -4.9125323, y: -0.30520058, z: 0.077698514}
|
||||
m_RenderMode: 0
|
||||
m_CameraMode:
|
||||
drawMode: 0
|
||||
@@ -758,9 +758,9 @@ MonoBehaviour:
|
||||
speed: 2
|
||||
m_Value: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_Size:
|
||||
m_Target: 7.0511937
|
||||
m_Target: 11.858034
|
||||
speed: 2
|
||||
m_Value: 6.747554
|
||||
m_Value: 11.858034
|
||||
m_Ortho:
|
||||
m_Target: 1
|
||||
speed: 2
|
||||
@@ -807,7 +807,7 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 738
|
||||
width: 1441
|
||||
width: 1361
|
||||
height: 261
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
@@ -839,9 +839,9 @@ MonoBehaviour:
|
||||
m_IsLocked: 0
|
||||
m_FolderTreeState:
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs: d2790000
|
||||
m_LastClickedID: 31186
|
||||
m_ExpandedIDs: 00000000b2790000
|
||||
m_SelectedIDs: ca790000
|
||||
m_LastClickedID: 31178
|
||||
m_ExpandedIDs: 00000000aa790000
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
@@ -869,7 +869,7 @@ MonoBehaviour:
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs:
|
||||
m_LastClickedID: 0
|
||||
m_ExpandedIDs: 00000000b2790000
|
||||
m_ExpandedIDs: 00000000aa790000
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
@@ -945,9 +945,9 @@ MonoBehaviour:
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 1442
|
||||
x: 1362
|
||||
y: 73
|
||||
width: 477
|
||||
width: 557
|
||||
height: 926
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
@@ -973,9 +973,9 @@ MonoBehaviour:
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 1442
|
||||
x: 1362
|
||||
y: 73
|
||||
width: 477
|
||||
width: 557
|
||||
height: 926
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
@@ -987,7 +987,7 @@ MonoBehaviour:
|
||||
m_CachedPref: -160
|
||||
m_ControlHash: -371814159
|
||||
m_PrefName: Preview_InspectorPreview
|
||||
m_LastInspectedObjectInstanceID: -1
|
||||
m_LastInspectedObjectInstanceID: 27790
|
||||
m_LastVerticalScrollValue: 0
|
||||
m_GlobalObjectId:
|
||||
m_InspectorMode: 0
|
||||
|
||||
Reference in New Issue
Block a user