Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- inheritance
- call by value
- Overloading
- Machine learning
- 맵리듀스
- 최소제곱법
- overriding
- regression
- call by reference
- 회귀학습
- 선형모델
- Nonlinear Model
- 회귀
- struct
- Nonlinear Function
- kubernetes
- virtual function
- least square
- member function
- 딥러닝
- local minimum
- 지도학습
- 비선형 함수
- 머신러닝
- Class
- MapReduce
- Linear Regression
- 비선형모델
- Effective C++
- c++
Archives
- Today
- Total
J's Study log
[Unity] Pubilc 본문
To use script A's function in script B. You have to declare function as public function like this.
And now you can use RestartGame() in other scripts. Funny thing to know that when you declare a variable public you can see it in Inspector.
You can see Coin Count and also you can change the value in real time. Just like I said, because you can change the value in real time, you should reset value in Start() function.
'Computer Language > Unity' 카테고리의 다른 글
[Unity] Time.deltaTime (0) | 2019.03.06 |
---|---|
[Unity] UI (0) | 2019.03.06 |
[Unity] Tag / Applied Learning(Eating Coins, Game Manager) (0) | 2019.03.04 |
[Unity] Trigger and Collision (0) | 2019.03.02 |
[Unity] Local Transform (0) | 2019.02.27 |
Comments