示例#1
0
    /**************************************************
    *   User Defined Functions
    **************************************************/

    /// <summary>
    /// 初期化処理
    /// </summary>
    private void Initialize()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        if (weapons == null)
        {
            weapons = SaveDataManager.GetList("Inventory Weapons", new List <Weapon>());
        }
        if (outfits == null)
        {
            outfits = SaveDataManager.GetList("Inventory Outfits", new List <Outfit>());
        }
    }