コード例 #1
0
ファイル: ComfortManager.cs プロジェクト: artboy77/Golem
 void Awake()
 {
     DontDestroyOnLoad (gameObject);
     if (instance != null) //seperate from the singleton class to allow deletion of gameobject rather than script
         Destroy(gameObject);
     else
         instance = this;
 }
コード例 #2
0
 void Start()
 {
     // Debug.Log("ComfortManager Start");
     instance     = this;
     settingsData = new ComfortSettingsData();
     Load();
     // SetDefaults();
 }