Unity Note 1
===
**2020.07.31**
## List
1. [Unity Components](#UC)
2. [How to make animation](#AN)
3. [Tag and layer, sorting layer](#tll)
4. [2D Physics](#ph)
5. [Directory Structure](#DS)
6. [Move Technics](#MT)
- *[Move Smooth](#MS)*
## Roglike Practice
### Unity Game Components<a id="UC"/>
1. **Sprite**
- Charactor Image, Map, Atlas for ani, ... all textures.
2. **Animation**
- Trigger and More Objs simulations.
3. **Sound**
- All effects for sounds
4. **Interface**
- View of Game. (UI, Map, etc...)
5. **Script**
- Control all Components
<br><br>
### How to make animation with sprite<a id="AN"/>
#### Create
1. Choose Sprite set for animation.
2. Insert sprite set in obj.
3. Save amin.
#### Control
Use AnimatorController.
<br><br>
### Tag and layer, sorting layer<a id="tll"/>
1. Tag is objs group name. Get objects with in scripts.
2. Layer is objs view group like photoshop.
- *Commonly blocking group(collision objs) and other.*
3. Sorting layer is attribute in SpriteRenderer. It works like z-index.
### 2D Physics<a id="ph"/>
1. RigidBody2d
- *Objs physics applied.(mass, gravity, ...)*
2. Collision2d
- *Objs Collision in others.*
<br><br>
### Directory Structure<a id="DS"/>
```=
Asset
├── Animations
| ├── Animation
| └── AnimationController
├── Audio
├── Scenes
├── Sprites
├── Fonts
└── Prefabs
```
<br><br>
### Scripts Structure<a id="CS"/>
1. BoardManager
- *Make Map*
- *Enermies and item and trap randomly are positioned.*
2. GameManager
- *Init Map*
- *Must Single theme. <- `Awake()` Load*
<br><br>
### Move Technics<a id="MT"/>
#### Move Smooth<a id="MS"/>
...