Created
June 10, 2016 16:51
-
-
Save ShirakawaYoshimaru/6bfd10695c9a0dcc1b17aa434f2b9241 to your computer and use it in GitHub Desktop.
このクラスをSingletonにする。Awake時に外部からGetData()されても正常に動作するようにしよう
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DataManager { | |
int dummyData; | |
void LoadData(){ | |
dummyData = 10; | |
} | |
public int GetData(){ | |
return dummyData; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment