update
This commit is contained in:
@@ -9,6 +9,7 @@ public class Ugynok : MonoBehaviour
|
||||
private Akciok akciok;
|
||||
private Upgrade upgrade;
|
||||
private jatekmanager jatekmanager;
|
||||
private Elet elet;
|
||||
private movement movement;
|
||||
|
||||
public TMP_Text[] oneone;
|
||||
@@ -43,11 +44,18 @@ public class Ugynok : MonoBehaviour
|
||||
public void setCanKillTrue(){ canKill = true; }
|
||||
public Camera maincamera;
|
||||
|
||||
private string[] previus_ugynok_csapatok;
|
||||
private int elozo_x;
|
||||
private int elozo_y ;
|
||||
|
||||
private void Awake() {
|
||||
akciok = FindObjectOfType<Akciok>();
|
||||
upgrade = FindObjectOfType<Upgrade>();
|
||||
jatekmanager = FindObjectOfType<jatekmanager>();
|
||||
movement = FindObjectOfType<movement>();
|
||||
elet = FindObjectOfType<Elet>();
|
||||
|
||||
previus_ugynok_csapatok = new string[3];
|
||||
}
|
||||
|
||||
private void Start()
|
||||
@@ -340,466 +348,150 @@ public class Ugynok : MonoBehaviour
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* private void Update()
|
||||
{
|
||||
if(canShoot){
|
||||
if(oneone[0].text.Equals("")){
|
||||
|
||||
public void ugynokMegolveElozoHelyen(){
|
||||
if(elozo_x != movement.jelenlegi_x || elozo_y != movement.jelenlegi_y){
|
||||
foreach(var item in previus_ugynok_csapatok){
|
||||
if(!item.Equals("")){
|
||||
//ha nem ures a text vagyis volt atirva szamra nezze meg hogy X-e
|
||||
if(!item.Equals("x")){
|
||||
//vonjon le egy eletet
|
||||
elet.Eletvesztes();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(elozo_x == 1 && elozo_y == 1){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = oneone[i].text;
|
||||
}
|
||||
}else if(elozo_x == 1 && elozo_y == 2){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = onetwo[i].text;
|
||||
}
|
||||
}else if(elozo_x == 1 && elozo_y == 3){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = onethree[i].text;
|
||||
}
|
||||
}else if(elozo_x == 1 && elozo_y == 4){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = onefour[i].text;
|
||||
}
|
||||
}else if(elozo_x == 2 && elozo_y == 1){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = twoone[i].text;
|
||||
}
|
||||
}else if(elozo_x == 2 && elozo_y == 2){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = twotwo[i].text;
|
||||
}
|
||||
}else if(elozo_x == 2 && elozo_y == 3){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = twothree[i].text;
|
||||
}
|
||||
}else if(elozo_x == 2 && elozo_y == 4){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = twofour[i].text;
|
||||
}
|
||||
}else if(elozo_x == 3 && elozo_y == 1){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = threeone[i].text;
|
||||
}
|
||||
}else if(elozo_x == 3 && elozo_y == 2){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = threetwo[i].text;
|
||||
}
|
||||
}else if(elozo_x == 3 && elozo_y == 3){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = threethree[i].text;
|
||||
}
|
||||
}else if(elozo_x == 3 && elozo_y == 4){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = threefour[i].text;
|
||||
}
|
||||
}
|
||||
|
||||
if (canKill)
|
||||
{
|
||||
//check for collider onclick then x out tmp text then set canKill false
|
||||
//check if text field is empty
|
||||
//oneone
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && oneoneCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
elozo_x = movement.jelenlegi_x;
|
||||
elozo_y = movement.jelenlegi_y;
|
||||
}
|
||||
|
||||
public void setElozoHelyszin(int x, int y){
|
||||
elozo_x = x;
|
||||
elozo_y = y;
|
||||
|
||||
if(elozo_x == 1 && elozo_y == 1){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!oneone[0].text.Equals(""))
|
||||
{
|
||||
oneone[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = oneone[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && oneoneCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 1 && elozo_y == 2){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!oneone[1].text.Equals(""))
|
||||
{
|
||||
oneone[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = onetwo[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && oneoneCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 1 && elozo_y == 3){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!oneone[2].text.Equals(""))
|
||||
{
|
||||
oneone[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = onethree[i].text;
|
||||
}
|
||||
//onetwo
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && onetwoCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 1 && elozo_y == 4){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onetwo[0].text.Equals(""))
|
||||
{
|
||||
onetwo[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = onefour[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && onetwoCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 2 && elozo_y == 1){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onetwo[1].text.Equals(""))
|
||||
{
|
||||
onetwo[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = twoone[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && onetwoCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 2 && elozo_y == 2){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onetwo[2].text.Equals(""))
|
||||
{
|
||||
onetwo[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = twotwo[i].text;
|
||||
}
|
||||
//onethree
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && onethreeCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 2 && elozo_y == 3){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onethree[0].text.Equals(""))
|
||||
{
|
||||
onethree[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = twothree[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && onethreeCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 2 && elozo_y == 4){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onethree[1].text.Equals(""))
|
||||
{
|
||||
onethree[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = twofour[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && onethreeCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 3 && elozo_y == 1){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onethree[2].text.Equals(""))
|
||||
{
|
||||
onethree[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = threeone[i].text;
|
||||
}
|
||||
//onefour
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && onefourCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 3 && elozo_y == 2){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onefour[0].text.Equals(""))
|
||||
{
|
||||
onefour[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = threetwo[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && onefourCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 3 && elozo_y == 3){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onefour[1].text.Equals(""))
|
||||
{
|
||||
onefour[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = threethree[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && onefourCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 3 && elozo_y == 4){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onefour[2].text.Equals(""))
|
||||
{
|
||||
onefour[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
//twoone
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && twooneCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twoone[0].text.Equals(""))
|
||||
{
|
||||
twoone[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twooneCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twoone[1].text.Equals(""))
|
||||
{
|
||||
twoone[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twooneCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twoone[2].text.Equals(""))
|
||||
{
|
||||
twoone[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
//twotwo
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && twotwoCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twotwo[0].text.Equals(""))
|
||||
{
|
||||
twotwo[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twotwoCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twotwo[1].text.Equals(""))
|
||||
{
|
||||
twotwo[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twotwoCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twotwo[2].text.Equals(""))
|
||||
{
|
||||
twotwo[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
//twothree
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && twothreeCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twothree[0].text.Equals(""))
|
||||
{
|
||||
twothree[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twothreeCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twothree[1].text.Equals(""))
|
||||
{
|
||||
twothree[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twothreeCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twothree[2].text.Equals(""))
|
||||
{
|
||||
twothree[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
//twofour
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && twofourCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twofour[0].text.Equals(""))
|
||||
{
|
||||
twofour[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
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!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = threefour[i].text;
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
@@ -41,7 +41,7 @@ public class vegpontozas : MonoBehaviour
|
||||
fejlesztespont = FejlesztesPont.fejlesztes_szamlalo;
|
||||
|
||||
osszpont = (energiapont * 2) + (megmaradtelet * 2) + (fejlesztespont / 3) + (tolteny / 2) + megszerzetttargyak;
|
||||
textMesh.text = "Összesen ennyi pontot szereztél:" + osszpont;
|
||||
//textMesh.text = "Összesen ennyi pontot szereztél:" + osszpont;
|
||||
return osszpont;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,20 +8,20 @@ MonoBehaviour:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 12004, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_PixelRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 65
|
||||
width: 1470
|
||||
height: 811
|
||||
y: 28
|
||||
width: 1366
|
||||
height: 673
|
||||
m_ShowMode: 4
|
||||
m_Title: Hierarchy
|
||||
m_RootView: {fileID: 2}
|
||||
m_MinSize: {x: 875, y: 371}
|
||||
m_MinSize: {x: 875, y: 300}
|
||||
m_MaxSize: {x: 10000, y: 10000}
|
||||
m_Maximized: 0
|
||||
--- !u!114 &2
|
||||
@@ -44,8 +44,8 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1470
|
||||
height: 811
|
||||
width: 1366
|
||||
height: 673
|
||||
m_MinSize: {x: 875, y: 300}
|
||||
m_MaxSize: {x: 10000, y: 10000}
|
||||
m_UseTopView: 1
|
||||
@@ -69,7 +69,7 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1470
|
||||
width: 1366
|
||||
height: 30
|
||||
m_MinSize: {x: 0, y: 0}
|
||||
m_MaxSize: {x: 0, y: 0}
|
||||
@@ -90,8 +90,8 @@ MonoBehaviour:
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 791
|
||||
width: 1470
|
||||
y: 653
|
||||
width: 1366
|
||||
height: 20
|
||||
m_MinSize: {x: 0, y: 0}
|
||||
m_MaxSize: {x: 0, y: 0}
|
||||
@@ -114,12 +114,12 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 30
|
||||
width: 1470
|
||||
height: 761
|
||||
width: 1366
|
||||
height: 623
|
||||
m_MinSize: {x: 300, y: 200}
|
||||
m_MaxSize: {x: 24288, y: 16192}
|
||||
vertical: 0
|
||||
controlID: 61
|
||||
controlID: 185
|
||||
--- !u!114 &6
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -139,12 +139,12 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1122.5
|
||||
height: 761
|
||||
width: 1043
|
||||
height: 623
|
||||
m_MinSize: {x: 200, y: 200}
|
||||
m_MaxSize: {x: 16192, y: 16192}
|
||||
vertical: 1
|
||||
controlID: 62
|
||||
controlID: 186
|
||||
--- !u!114 &7
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -164,12 +164,12 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1122.5
|
||||
height: 451
|
||||
width: 1043
|
||||
height: 369
|
||||
m_MinSize: {x: 200, y: 100}
|
||||
m_MaxSize: {x: 16192, y: 8096}
|
||||
vertical: 0
|
||||
controlID: 63
|
||||
controlID: 187
|
||||
--- !u!114 &8
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -187,8 +187,8 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 278
|
||||
height: 451
|
||||
width: 258
|
||||
height: 369
|
||||
m_MinSize: {x: 200, y: 200}
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_ActualView: {fileID: 13}
|
||||
@@ -211,10 +211,10 @@ MonoBehaviour:
|
||||
m_Children: []
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 278
|
||||
x: 258
|
||||
y: 0
|
||||
width: 844.5
|
||||
height: 451
|
||||
width: 785
|
||||
height: 369
|
||||
m_MinSize: {x: 202, y: 221}
|
||||
m_MaxSize: {x: 4002, y: 4021}
|
||||
m_ActualView: {fileID: 12}
|
||||
@@ -239,9 +239,9 @@ MonoBehaviour:
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 451
|
||||
width: 1122.5
|
||||
height: 310
|
||||
y: 369
|
||||
width: 1043
|
||||
height: 254
|
||||
m_MinSize: {x: 231, y: 271}
|
||||
m_MaxSize: {x: 10001, y: 10021}
|
||||
m_ActualView: {fileID: 15}
|
||||
@@ -265,10 +265,10 @@ MonoBehaviour:
|
||||
m_Children: []
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 1122.5
|
||||
x: 1043
|
||||
y: 0
|
||||
width: 347.5
|
||||
height: 761
|
||||
width: 323
|
||||
height: 623
|
||||
m_MinSize: {x: 275, y: 50}
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_ActualView: {fileID: 17}
|
||||
@@ -292,14 +292,14 @@ MonoBehaviour:
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_TitleContent:
|
||||
m_Text: Game
|
||||
m_Image: {fileID: 4621777727084837110, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Image: {fileID: -6423792434712278376, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 278
|
||||
y: 95
|
||||
width: 842.5
|
||||
height: 430
|
||||
x: 258
|
||||
y: 86
|
||||
width: 783
|
||||
height: 348
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
@@ -310,7 +310,7 @@ MonoBehaviour:
|
||||
m_ShowGizmos: 0
|
||||
m_TargetDisplay: 0
|
||||
m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_TargetSize: {x: 842.5, y: 409}
|
||||
m_TargetSize: {x: 783, y: 327}
|
||||
m_TextureFilterMode: 0
|
||||
m_TextureHideFlags: 61
|
||||
m_RenderIMGUI: 1
|
||||
@@ -325,10 +325,10 @@ MonoBehaviour:
|
||||
m_VRangeLocked: 0
|
||||
hZoomLockedByDefault: 0
|
||||
vZoomLockedByDefault: 0
|
||||
m_HBaseRangeMin: -210.625
|
||||
m_HBaseRangeMax: 210.625
|
||||
m_VBaseRangeMin: -102.25
|
||||
m_VBaseRangeMax: 102.25
|
||||
m_HBaseRangeMin: -391.5
|
||||
m_HBaseRangeMax: 391.5
|
||||
m_VBaseRangeMin: -163.5
|
||||
m_VBaseRangeMax: 163.5
|
||||
m_HAllowExceedBaseRangeMin: 1
|
||||
m_HAllowExceedBaseRangeMax: 1
|
||||
m_VAllowExceedBaseRangeMin: 1
|
||||
@@ -346,23 +346,23 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 21
|
||||
width: 842.5
|
||||
height: 409
|
||||
m_Scale: {x: 2, y: 2}
|
||||
m_Translation: {x: 421.25, y: 204.5}
|
||||
width: 783
|
||||
height: 327
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Translation: {x: 391.5, y: 163.5}
|
||||
m_MarginLeft: 0
|
||||
m_MarginRight: 0
|
||||
m_MarginTop: 0
|
||||
m_MarginBottom: 0
|
||||
m_LastShownAreaInsideMargins:
|
||||
serializedVersion: 2
|
||||
x: -210.625
|
||||
y: -102.25
|
||||
width: 421.25
|
||||
height: 204.5
|
||||
x: -391.5
|
||||
y: -163.5
|
||||
width: 783
|
||||
height: 327
|
||||
m_MinimalGUI: 1
|
||||
m_defaultScale: 2
|
||||
m_LastWindowPixelSize: {x: 1685, y: 860}
|
||||
m_defaultScale: 1
|
||||
m_LastWindowPixelSize: {x: 783, y: 348}
|
||||
m_ClearInEditMode: 1
|
||||
m_NoCameraWarning: 1
|
||||
m_LowResolutionForAspectRatios: 01000000000000000000
|
||||
@@ -384,14 +384,14 @@ MonoBehaviour:
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_TitleContent:
|
||||
m_Text: Hierarchy
|
||||
m_Image: {fileID: -3734745235275155857, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Image: {fileID: 7966133145522015247, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 95
|
||||
width: 277
|
||||
height: 430
|
||||
y: 86
|
||||
width: 257
|
||||
height: 348
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
@@ -399,9 +399,9 @@ MonoBehaviour:
|
||||
m_SceneHierarchy:
|
||||
m_TreeViewState:
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs: 5cd90000
|
||||
m_LastClickedID: 55644
|
||||
m_ExpandedIDs: c6d0ffffced1ffff2afbfffffcd70000
|
||||
m_SelectedIDs:
|
||||
m_LastClickedID: 0
|
||||
m_ExpandedIDs: d0ecffff4eedffff26efffff30effffff8f0ffff16f1ffff9efaffff
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
@@ -441,7 +441,7 @@ MonoBehaviour:
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_TitleContent:
|
||||
m_Text: Scene
|
||||
m_Image: {fileID: 8634526014445323508, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Image: {fileID: 2593428753322112591, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
@@ -705,9 +705,9 @@ MonoBehaviour:
|
||||
m_PlayAudio: 0
|
||||
m_AudioPlay: 0
|
||||
m_Position:
|
||||
m_Target: {x: -5.0540023, y: -0.47023767, z: 0.040666837}
|
||||
m_Target: {x: -8.945042, y: -2.5416188, z: 0.0057649035}
|
||||
speed: 2
|
||||
m_Value: {x: -5.0540023, y: -0.47023767, z: 0.040666837}
|
||||
m_Value: {x: -8.945042, y: -2.5416188, z: 0.0057649035}
|
||||
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: 13.287295
|
||||
m_Target: 7.5217633
|
||||
speed: 2
|
||||
m_Value: 13.287295
|
||||
m_Value: 7.5217633
|
||||
m_Ortho:
|
||||
m_Target: 1
|
||||
speed: 2
|
||||
@@ -801,14 +801,14 @@ MonoBehaviour:
|
||||
m_MaxSize: {x: 10000, y: 10000}
|
||||
m_TitleContent:
|
||||
m_Text: Project
|
||||
m_Image: {fileID: -5179483145760003458, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Image: {fileID: -5467254957812901981, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 546
|
||||
width: 1121.5
|
||||
height: 289
|
||||
y: 455
|
||||
width: 1042
|
||||
height: 233
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
@@ -826,22 +826,22 @@ MonoBehaviour:
|
||||
m_SkipHidden: 0
|
||||
m_SearchArea: 1
|
||||
m_Folders:
|
||||
- Assets/Scripts
|
||||
- Assets
|
||||
m_Globs: []
|
||||
m_OriginalText:
|
||||
m_ViewMode: 1
|
||||
m_StartGridSize: 64
|
||||
m_LastFolders:
|
||||
- Assets/Scripts
|
||||
- Assets
|
||||
m_LastFoldersGridSize: -1
|
||||
m_LastProjectPath: /Users/bance/Documents/GitHub/findthesource
|
||||
m_LastProjectPath: /home/tom/Documents/dev/find the source
|
||||
m_LockTracker:
|
||||
m_IsLocked: 0
|
||||
m_FolderTreeState:
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs: 1c7a0000
|
||||
m_LastClickedID: 31260
|
||||
m_ExpandedIDs: 00000000027a000000ca9a3bffffff7f
|
||||
m_SelectedIDs: c6690000
|
||||
m_LastClickedID: 27078
|
||||
m_ExpandedIDs: 00000000c669000000ca9a3b
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
@@ -869,7 +869,7 @@ MonoBehaviour:
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs:
|
||||
m_LastClickedID: 0
|
||||
m_ExpandedIDs: 00000000027a0000
|
||||
m_ExpandedIDs: 00000000c669000000ca9a3b
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
@@ -896,7 +896,7 @@ MonoBehaviour:
|
||||
m_ListAreaState:
|
||||
m_SelectedInstanceIDs:
|
||||
m_LastClickedInstanceID: 0
|
||||
m_HadKeyboardFocusLastEvent: 1
|
||||
m_HadKeyboardFocusLastEvent: 0
|
||||
m_ExpandedInstanceIDs: c6230000
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
@@ -941,7 +941,7 @@ MonoBehaviour:
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_TitleContent:
|
||||
m_Text: Console
|
||||
m_Image: {fileID: -4950941429401207979, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Image: {fileID: -4327648978806127646, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
@@ -969,14 +969,14 @@ MonoBehaviour:
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_TitleContent:
|
||||
m_Text: Inspector
|
||||
m_Image: {fileID: -440750813802333266, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Image: {fileID: -2667387946076563598, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 1122.5
|
||||
y: 95
|
||||
width: 346.5
|
||||
height: 740
|
||||
x: 1043
|
||||
y: 86
|
||||
width: 322
|
||||
height: 602
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
|
||||
Reference in New Issue
Block a user