Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created March 1, 2018 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/b13b5e13072b2e782093f8e274369343 to your computer and use it in GitHub Desktop.
Save tsubaki/b13b5e13072b2e782093f8e274369343 to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
//https://gist.github.com/tsubaki/6bacf17a930e686722a9cecdc4900344
[CreateAssetMenu]
public class AddObjects : ResettableScriptableObject
{
public Text label {get; set;}
int count = 0;
public void Add()
{
count ++;
label.text = count.ToString("00");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment