ugynok csapat oles kesz
This commit is contained in:
@@ -3657,50 +3657,100 @@ MonoBehaviour:
|
||||
- {fileID: 1326456196}
|
||||
- {fileID: 144640423}
|
||||
- {fileID: 833259107}
|
||||
oneoneCollider:
|
||||
- {fileID: 416499492}
|
||||
- {fileID: 1541006005}
|
||||
- {fileID: 2013586993}
|
||||
twoone:
|
||||
- {fileID: 1201900458}
|
||||
- {fileID: 605592371}
|
||||
- {fileID: 1216668348}
|
||||
twooneCollider:
|
||||
- {fileID: 1624401003}
|
||||
- {fileID: 1022299900}
|
||||
- {fileID: 482097724}
|
||||
threeone:
|
||||
- {fileID: 1557522799}
|
||||
- {fileID: 494324061}
|
||||
- {fileID: 169295795}
|
||||
threeoneCollider:
|
||||
- {fileID: 508890158}
|
||||
- {fileID: 1982496777}
|
||||
- {fileID: 1374165778}
|
||||
onetwo:
|
||||
- {fileID: 325852436}
|
||||
- {fileID: 2139851218}
|
||||
- {fileID: 1429282887}
|
||||
onetwoCollider:
|
||||
- {fileID: 893820169}
|
||||
- {fileID: 1328647951}
|
||||
- {fileID: 236305771}
|
||||
twotwo:
|
||||
- {fileID: 181786101}
|
||||
- {fileID: 1323862075}
|
||||
- {fileID: 2084459196}
|
||||
twotwoCollider:
|
||||
- {fileID: 1615015558}
|
||||
- {fileID: 1954876564}
|
||||
- {fileID: 974343173}
|
||||
threetwo:
|
||||
- {fileID: 1677562173}
|
||||
- {fileID: 1084869153}
|
||||
- {fileID: 473458443}
|
||||
threetwoCollider:
|
||||
- {fileID: 1297498738}
|
||||
- {fileID: 293544120}
|
||||
- {fileID: 2137211082}
|
||||
onethree:
|
||||
- {fileID: 280090609}
|
||||
- {fileID: 1647177067}
|
||||
- {fileID: 1995086240}
|
||||
onethreeCollider:
|
||||
- {fileID: 706540132}
|
||||
- {fileID: 683300588}
|
||||
- {fileID: 1397901026}
|
||||
twothree:
|
||||
- {fileID: 2107810768}
|
||||
- {fileID: 2141320755}
|
||||
- {fileID: 720969165}
|
||||
twothreeCollider:
|
||||
- {fileID: 798647103}
|
||||
- {fileID: 430026346}
|
||||
- {fileID: 1570926430}
|
||||
threethree:
|
||||
- {fileID: 1374738211}
|
||||
- {fileID: 815573860}
|
||||
- {fileID: 1962024232}
|
||||
threethreeCollider:
|
||||
- {fileID: 1564652874}
|
||||
- {fileID: 788057597}
|
||||
- {fileID: 1002673360}
|
||||
onefour:
|
||||
- {fileID: 694600666}
|
||||
- {fileID: 2026770335}
|
||||
- {fileID: 1872052770}
|
||||
onefourCollider:
|
||||
- {fileID: 542154673}
|
||||
- {fileID: 1678558476}
|
||||
- {fileID: 421286395}
|
||||
twofour:
|
||||
- {fileID: 981449535}
|
||||
- {fileID: 716950397}
|
||||
- {fileID: 1347432663}
|
||||
twofourCollider:
|
||||
- {fileID: 1971118424}
|
||||
- {fileID: 190452685}
|
||||
- {fileID: 922632583}
|
||||
threefour:
|
||||
- {fileID: 939451652}
|
||||
- {fileID: 1965172624}
|
||||
- {fileID: 1054331718}
|
||||
threefourCollider:
|
||||
- {fileID: 1157172197}
|
||||
- {fileID: 753661018}
|
||||
- {fileID: 1240172719}
|
||||
canKill: 0
|
||||
maincamera: {fileID: 519420031}
|
||||
--- !u!1 &229807670
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -6768,9 +6818,9 @@ MonoBehaviour:
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 197904230}
|
||||
m_TargetAssemblyTypeName: Elet, Assembly-CSharp
|
||||
m_MethodName: Eletvesztes
|
||||
- m_Target: {fileID: 197904235}
|
||||
m_TargetAssemblyTypeName: Ugynok, Assembly-CSharp
|
||||
m_MethodName: setCanKillTrue
|
||||
m_Mode: 1
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
|
||||
@@ -6,19 +6,39 @@ using TMPro;
|
||||
public class Ugynok : MonoBehaviour
|
||||
{
|
||||
public TMP_Text[] oneone;
|
||||
public BoxCollider2D[] oneoneCollider;
|
||||
public TMP_Text[] twoone;
|
||||
public BoxCollider2D[] twooneCollider;
|
||||
public TMP_Text[] threeone;
|
||||
public BoxCollider2D[] threeoneCollider;
|
||||
public TMP_Text[] onetwo;
|
||||
public BoxCollider2D[] onetwoCollider;
|
||||
public TMP_Text[] twotwo;
|
||||
public BoxCollider2D[] twotwoCollider;
|
||||
public TMP_Text[] threetwo;
|
||||
public BoxCollider2D[] threetwoCollider;
|
||||
public TMP_Text[] onethree;
|
||||
public BoxCollider2D[] onethreeCollider;
|
||||
public TMP_Text[] twothree;
|
||||
public BoxCollider2D[] twothreeCollider;
|
||||
public TMP_Text[] threethree;
|
||||
public BoxCollider2D[] threethreeCollider;
|
||||
public TMP_Text[] onefour;
|
||||
public BoxCollider2D[] onefourCollider;
|
||||
public TMP_Text[] twofour;
|
||||
public BoxCollider2D[] twofourCollider;
|
||||
public TMP_Text[] threefour;
|
||||
public BoxCollider2D[] threefourCollider;
|
||||
|
||||
private void Start() {
|
||||
public bool canKill = false;
|
||||
public void setCanKillTrue()
|
||||
{
|
||||
canKill = true;
|
||||
}
|
||||
public Camera maincamera;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
for (int i = 0; i < oneone.Length; i++)
|
||||
{
|
||||
oneone[i].text = "";
|
||||
@@ -69,104 +89,641 @@ public class Ugynok : MonoBehaviour
|
||||
{
|
||||
threefour[i].text = "";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void UgynokSorsolas(int x, int y) {
|
||||
if (x == 1 && y == 1) {
|
||||
if (oneone[0].text.Equals("")) {
|
||||
private void Update()
|
||||
{
|
||||
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)))
|
||||
{
|
||||
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
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && onethreeCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!onethree[2].text.Equals(""))
|
||||
{
|
||||
onethree[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
//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)))
|
||||
{
|
||||
if (!onefour[1].text.Equals(""))
|
||||
{
|
||||
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
|
||||
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!!!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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("")) {
|
||||
}
|
||||
else if (oneone[1].text.Equals(""))
|
||||
{
|
||||
oneone[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}else if (oneone[2].text.Equals("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
else if (onetwo[1].text.Equals(""))
|
||||
{
|
||||
onetwo[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
} else if (onetwo[2].text.Equals("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
else if (onethree[1].text.Equals(""))
|
||||
{
|
||||
onethree[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
} else if (onethree[2].text.Equals("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
else if (onefour[1].text.Equals(""))
|
||||
{
|
||||
onefour[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
} else if (onefour[2].text.Equals("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
else if (twoone[1].text.Equals(""))
|
||||
{
|
||||
twoone[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
} else if (twoone[2].text.Equals("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
else if (twotwo[1].text.Equals(""))
|
||||
{
|
||||
twotwo[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
} else if (twotwo[2].text.Equals("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
else if (twothree[1].text.Equals(""))
|
||||
{
|
||||
twothree[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
} else if (twothree[2].text.Equals("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
else if (twofour[1].text.Equals(""))
|
||||
{
|
||||
twofour[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
} else if (twofour[2].text.Equals("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
else if (threeone[1].text.Equals(""))
|
||||
{
|
||||
threeone[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
} else if (threeone[2].text.Equals("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
else if (threetwo[1].text.Equals(""))
|
||||
{
|
||||
threetwo[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
} else if (threetwo[2].text.Equals("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
else if (threethree[1].text.Equals(""))
|
||||
{
|
||||
threethree[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
} else if (threethree[2].text.Equals("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
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("")) {
|
||||
}
|
||||
else if (threefour[1].text.Equals(""))
|
||||
{
|
||||
threefour[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
} else if (threefour[2].text.Equals("")) {
|
||||
}
|
||||
else if (threefour[2].text.Equals(""))
|
||||
{
|
||||
threefour[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user