Skip to content

L’atelier d’Hyobin

#game #programming # device

  • Game
    • Journal
    • Review(Games)
  • Programming
    • Introduction to C# Programming and Unity
    • More C# Programming and Unity
    • Intermediate Object-Oriented Programming for Unity Games
    • C# ADD-ON
    • Unity Tutorial
      • Scripting
      • Pysics
        • 3D Physics
      • Project
        • Roll a Ball
        • Space Shooter
        • Space Shooter 2D
        • RPG Tutorial
  • Device
    • Review(Devices)

GetValue

Data Type : Enum

Posted on May 3, 2018May 6, 2018 by 김효빈

Enumeration

  • enum type is a distinct value type that declares a set of named constants
  • It can decrease the possibility of using or reading wrong data
  • It can exclude the possibility of duplicated data
  • If we don’t declare an underlying data type, the default data type is ‘int’
스크린샷 2018-05-03 오후 2.54.19
Declaration of Enum
스크린샷 2018-05-03 오후 2.55.11
Usage of Enum
ec8aa4ed81aceba6b0ec83b7-2018-05-03-ec98a4ed9b84-2-56-471-e1525373933600.png
Enum | Result

 

Posted in C# ADD-ON, Game, ProgrammingTagged enum, GetValue, typeofLeave a comment
Website Built with WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • L’atelier d’Hyobin
    • Already have a WordPress.com account? Log in now.
    • L’atelier d’Hyobin
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    Design a site like this with WordPress.com
    Get started