ScriptableObject sample
using UnityEngine; | |
using System.Collections; | |
public class AddCount : MonoBehaviour | |
{ | |
[SerializeField] | |
Sample data; | |
void OnGUI () | |
{ | |
GUILayout.Label (data.count.ToString ()); | |
if (GUILayout.Button ("add")) { | |
data.count += 1; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment