Fix display area names

This commit is contained in:
Vova
2024-04-30 17:58:26 +03:00
parent a0b031133a
commit 1584d904df
6 changed files with 2492 additions and 117 deletions
@@ -8,7 +8,7 @@ public class AreaName : MonoBehaviour
private void OnTriggerEnter(Collider other)
{
if(other.gameObject.tag.ToLower()=="player")
if(other.gameObject.GetComponentInChildren<Player>() is Player)
{
(Player.Instance.Stats[StatsId.LocationName] as IStringStat).SetValue(_areaName);
}
+1 -1
View File
@@ -73,6 +73,7 @@ public abstract class BaseCharacter : MonoBehaviour
}
}
}
private TaskStatus MoveToPoint()
{
_navAgent.isStopped = false;
@@ -97,7 +98,6 @@ public abstract class BaseCharacter : MonoBehaviour
return true;
}
}
return false;
}