warning CS0108: 'PlayerBall.audio' hides inherited member 'Component.audio'. Use the new keyword if hiding was intended. 에러 해결하기
Assets\Script\PlayerBall.cs(11,17): warning CS0108: 'PlayerBall.audio' hides inherited member 'Component.audio'. Use the new keyword if hiding was intended. 위의 에러는 여기서 오류가 발생한다. 선언해주는 곳에서 audio의 이름을 다른이름으로 변경하면 에러 해결! 예시) 아래와 같이 수정하면 에러 해결! AudioSource audio1; audio가 들어간 이름들 전부다 수정!
유니티
2023. 5. 30. 15:19