Skip to content

Instantly share code, notes, and snippets.

@oismaelash
Last active February 18, 2018 20:45
Show Gist options
  • Save oismaelash/4b71d55cc2fb68725d83c1b324df7f44 to your computer and use it in GitHub Desktop.
Save oismaelash/4b71d55cc2fb68725d83c1b324df7f44 to your computer and use it in GitHub Desktop.
using UnityEngine;
using UnityEngine.UI;
public class TestsAny : MonoBehaviour
{
[SerializeField] private Text[] myComponentText;
[SerializeField] private int myInt = 0;
private void Update()
{
if (myComponentText[myInt].text.Length != myInt)
{
print("Action Now");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment