Fix display area names
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user