private void OnStatusChange(RoleStatus roleStatus, bool isAdd) { NavMeshAgent agent = aiUtils.GetNavMeshAgent(gameObject.transform); if (agent.isStopped) { if (currentRole.CanMove()) { agent.isStopped = false; } } else { if (!currentRole.CanMove()) { agent.isStopped = true; } } }