private Score last_socre; // 今回のスコアー. #endregion Fields #region Methods public static GlobalParam getInstance() { if(instance == null) { GameObject go = new GameObject("GlobalParam"); instance = go.AddComponent<GlobalParam>(); instance.initialize(); DontDestroyOnLoad(go); } return(instance); }
public static GlobalParam getInstance() { if (instance == null) { GameObject go = new GameObject("GlobalParam"); instance = go.AddComponent <GlobalParam>(); instance.initialize(); DontDestroyOnLoad(go); } return(instance); }