유니티 C#

유니티 C#) 생성자와 소멸자

simbble 2023. 1. 26. 14:58

간단한 개념은

생성자는 객체를 생성할 때 호출되는 메서드

소멸자는 객체가 소멸될 때 호출되는 메서드

 

참고

https://learn.microsoft.com/ko-kr/dotnet/csharp/programming-guide/classes-and-structs/constructors

저작자표시 비영리 변경금지 (새창열림)