Darkfafi / Mythe_Orion_Game

Game for mobile school project Mythe Orion
1 stars 0 forks source link

Gebruik duidelijke namen - single responsibility principle #3

Open BerendWeij opened 9 years ago

BerendWeij commented 9 years ago
public class MovementScript : MonoBehaviour { 

Bestand: https://github.com/Darkfafi/Mythe_Orion_Game/blob/master/Assets/_Scripts/GlobalScripts/MovementScript.cs

Class names moeten duidelijk zijn. Verder moeten binnen OOP class names altijd een zelfstandig naamwoord zijn (kat, neus, boom, auto, etc.).

Wat betekent de naam MovementScript? Wat doet het? Sta goed stil bij de naam. Gebruik geen Script in je className.