유니티 내에서 파일을 옮길 때 액세스 거부가 뜰 때가 있는데
몬스터 객체가 여러 개 있을 때 state변환이 안된다..
chasingState -> attackState로 변환이 안된다..
protected bool IsInAttackRange()
{
if (stateMachine.Monster.Agent == null) return false;
float remainDistance = stateMachine.Monster.Agent.remainingDistance;
float stoppingDistance = stateMachine.Monster.Agent.stoppingDistance;
return remainDistance <= stoppingDistance || remainDistance <= stateMachine.Monster.AttackRange;
}
Layout Component는 메모리를 많이 차지한다.. 몰랐어
-> 최적화 필요
작업표시줄 클릭이 안되고, alt + tab이 안될 때 window키를 연타하면 해결된다🤭