targyak, movement, ugynok update

This commit is contained in:
2023-01-23 13:03:35 +01:00
parent 1cdcca2106
commit 02dd8a4076
7 changed files with 988 additions and 586 deletions

View File

@@ -31,6 +31,7 @@ public class Ugynok : MonoBehaviour
public BoxCollider2D[] threefourCollider;
public bool canKill = false;
public bool canShoot = false; //harchoz bool
public void setCanKillTrue()
{
canKill = true;
@@ -94,6 +95,12 @@ public class Ugynok : MonoBehaviour
private void Update()
{
if(canShoot){
if(oneone[0].text.Equals("")){
}
}
if (canKill)
{
//check for collider onclick then x out tmp text then set canKill false