A class is basically a script, and if you are familiar with Mono Behavior in Unity, then you are already familiar with class inheritance. Attaching a script to a game object for functionality like movement, UI, shooting, etc., is possible because the attached script is inheriting mono behavior, from Unity. A custom class is a developer-defined class, which is can be used for creating modularity, and storing relevant information.

9m read timeFrom levelup.gitconnected.com
Post cover image
1 Comment

Sort: