Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
 public static GlobalParam       getInstance()
 {
     if (instance == null)
     {
         GameObject go = new GameObject("GlobalParam");
         instance = go.AddComponent <GlobalParam>();
         instance.initialize();
         DontDestroyOnLoad(go);
     }
     return(instance);
 }