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
- Effective C++
- member function
- overriding
- 최소제곱법
- 지도학습
- 회귀학습
- 머신러닝
- struct
- 맵리듀스
- 회귀
- regression
- Nonlinear Model
- Nonlinear Function
- Class
- c++
- call by reference
- Machine learning
- least square
- kubernetes
- 비선형모델
- local minimum
- Linear Regression
- virtual function
- call by value
- inheritance
- 선형모델
- 비선형 함수
- 딥러닝
- Overloading
- MapReduce
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