Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // The Unity way
- public class BadHero {
- private int m_Health { get; set; }
- public BadHero(int health) {
- m_Health = health;
- }
- }
- // The C# convention
- public class GoodHero {
- private int _health { get; set; }
- public GoodHero(int health) {
- _health = health;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment