improved save/load mechanic.

This commit is contained in:
Finnchen123
2024-10-05 11:53:34 +02:00
parent 1235d5ff0c
commit a82fa992f9
14 changed files with 420 additions and 50 deletions

View File

@@ -64,7 +64,7 @@ namespace Assets.Scripts.Player
if (hit.collider.gameObject.tag.ToLower().Contains("object"))
{
string obj = hit.collider.gameObject.tag.Split(':')[1];
if (hit.distance <= 10 && !obj.ToLower().Equals("house"))
if (hit.distance <= 3 && !obj.ToLower().Equals("house"))
{
if (!uihandler.isPlayerInFight())
{