YuminekoGame
2/17/2019 - 9:39 AM

SaveDataObject

セーブデータを管理するシングルトン

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SaveDataObject : SingletonMonoBehaviour<SaveDataObject> {
    public string text;
    void OnGUI () {
        GUI.Box (new Rect (Screen.width / 2 - 250, Screen.height / 2 - 50, 500, 100), "");
        GUI.Label (new Rect (Screen.width / 2 - 20, Screen.height / 2 - 10, 100, 50), text);
    }
}