update
This commit is contained in:
@@ -30,9 +30,6 @@ public class Akciok : MonoBehaviour
|
||||
|
||||
};
|
||||
|
||||
|
||||
//
|
||||
|
||||
//Hack
|
||||
public TMP_Text elso_sor_text;
|
||||
public TMP_Text[] masodik_sor;
|
||||
@@ -48,13 +45,14 @@ public class Akciok : MonoBehaviour
|
||||
private bool omega = false;
|
||||
//
|
||||
|
||||
private void Start()
|
||||
{
|
||||
private void Awake(){
|
||||
ap = FindObjectOfType<Akciopont>();
|
||||
movement = FindObjectOfType<movement>();
|
||||
upgrade = FindObjectOfType<Upgrade>();
|
||||
source = FindObjectOfType<Source>();
|
||||
source = FindObjectOfType<Source>();
|
||||
}
|
||||
|
||||
private void Start(){
|
||||
//kezdesnel karikazza be az elso harom adott toltenyt
|
||||
for (int i = 0; i < tolteny_index; i++)
|
||||
{
|
||||
@@ -308,6 +306,5 @@ public class Akciok : MonoBehaviour
|
||||
{
|
||||
Debug.Log("itt mar hackeltel");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,10 +11,11 @@ public class Elet : MonoBehaviour
|
||||
private int elet_megszerezve = 2;
|
||||
private jatekmanager jatekmanager;
|
||||
|
||||
private void Start() {
|
||||
private void Awake() {
|
||||
jatekmanager = FindObjectOfType<jatekmanager>();
|
||||
}
|
||||
|
||||
|
||||
private void Start() {
|
||||
for (int i = 0; i < elet_megszerezve; i++) {
|
||||
elet_text[i].text = "O";
|
||||
}
|
||||
|
||||
@@ -13,9 +13,11 @@ public class Source : MonoBehaviour
|
||||
|
||||
private bool oneTime = false;
|
||||
|
||||
private void Start() {
|
||||
private void Awake() {
|
||||
movement = FindObjectOfType<movement>();
|
||||
}
|
||||
|
||||
private void Start() {
|
||||
sor = new List<int>();
|
||||
for (int i = 1; i < 5; i++) {
|
||||
sor.Add(i);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
@@ -38,6 +39,7 @@ public class Targyak : MonoBehaviour
|
||||
energia = FindObjectOfType<Energia>();
|
||||
ugynok = FindObjectOfType<Ugynok>();
|
||||
dice = FindObjectOfType<Dice>();
|
||||
|
||||
}
|
||||
|
||||
public void RandomTargy()
|
||||
@@ -87,6 +89,27 @@ public class Targyak : MonoBehaviour
|
||||
adrenalinloket = 1;
|
||||
}
|
||||
|
||||
private void Update() {
|
||||
if(!kocka1ertek.text.Equals("")){ //megnezzuk hogy van e mar valami a szovegben
|
||||
for(int i = 0; i < kocka1ertek.text.Length; i++) //vegig megyunk a szovegen
|
||||
{
|
||||
if(!Char.IsDigit(kocka1ertek.text[i])){ //ha a betu nem szam torolje
|
||||
Debug.Log("updaate");
|
||||
kocka1ertek.text.Remove(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!kocka2ertek.text.Equals("")){ //megnezzuk hogy van e mar valami a szovegben
|
||||
for(int i = 0; i < kocka2ertek.text.Length; i++) //vegig megyunk a szovegen
|
||||
{
|
||||
if(!Char.IsDigit(kocka2ertek.text[i])){ //ha a betu nem szam torolje
|
||||
kocka2ertek.text.Remove(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void CallAdrenalinLoket() => StartCoroutine(AdrenalinLoket());
|
||||
|
||||
public IEnumerator AdrenalinLoket() {
|
||||
|
||||
@@ -11,7 +11,7 @@ public class TurnManager : MonoBehaviour
|
||||
|
||||
public int turnCounter = 1;
|
||||
|
||||
void Start()
|
||||
void Awake()
|
||||
{
|
||||
dice = FindObjectOfType<Dice>();
|
||||
akciopont = FindObjectOfType<Akciopont>();
|
||||
@@ -21,6 +21,7 @@ public class TurnManager : MonoBehaviour
|
||||
|
||||
public void nextTurn() {
|
||||
dice.setLocked(false);
|
||||
dice.dobottEgyszer = false;
|
||||
akciopont.resetAkciopont();
|
||||
energia.csokkenEnergia(upgrade.energia[upgrade.getEnergiaIndex()]);
|
||||
energia.granatAktivalva = false; //ha aktivalva lett a granat a korben deaktivalja
|
||||
|
||||
@@ -27,10 +27,11 @@ public class Upgrade : MonoBehaviour
|
||||
public int getUjradobasIndex() { return ujradobas_index; }
|
||||
public int getHackIndex() { return hack_index; }
|
||||
|
||||
private void Start()
|
||||
private void Awake()
|
||||
{
|
||||
akciopont = FindObjectOfType<Akciopont>();
|
||||
}
|
||||
|
||||
public void upgradeEnergia() {
|
||||
if (canUpgrade) {
|
||||
if (energia_index < 4) {
|
||||
|
||||
@@ -15,7 +15,7 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
private Ugynok ugynok;
|
||||
private Energia energia;
|
||||
|
||||
void Start()
|
||||
void Awake()
|
||||
{
|
||||
akciopont = FindObjectOfType<Akciopont>();
|
||||
movement = FindObjectOfType<movement>();
|
||||
|
||||
@@ -50,7 +50,7 @@ public class jatekmanager : MonoBehaviour
|
||||
public bool jatekosnyert = false;
|
||||
public bool jatekosvesztett = false;
|
||||
|
||||
private void Start()
|
||||
private void Awake()
|
||||
{
|
||||
elet = FindObjectOfType<Elet>();
|
||||
akciok = FindObjectOfType<Akciok>();
|
||||
|
||||
@@ -105,12 +105,14 @@ public class movement : MonoBehaviour
|
||||
{"", "", "", "" }
|
||||
};
|
||||
|
||||
void Start()
|
||||
{
|
||||
private void Awake() {
|
||||
ap = FindObjectOfType<Akciopont>();
|
||||
ugynok = FindObjectOfType<Ugynok>();
|
||||
targyak = FindObjectOfType<Targyak>();
|
||||
targyak = FindObjectOfType<Targyak>();
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
eromulepes1.SetActive(false);
|
||||
eromulepes2.SetActive(false);
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
public class nyomozas : MonoBehaviour
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 32cd04417f58e9744b4743a6cc333196
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class uj : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eaba8d7c523212e4a8a40fcef8e9eb9e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -20,7 +20,7 @@ public class vegpontozas : MonoBehaviour
|
||||
int energiapont;
|
||||
int megmaradtelet;
|
||||
|
||||
void Start()
|
||||
void Awake()
|
||||
{
|
||||
energia = FindObjectOfType<Energia>();
|
||||
FejlesztesPont = FindObjectOfType<Upgrade>();
|
||||
|
||||
Reference in New Issue
Block a user