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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user