using System.Collections; using System.Collections.Generic; using UnityEngine; public class Test : MonoBehaviour { public void testPass() { Debug.Log("Passhthrough test: " + FindObjectOfType().getDices()[0]); Debug.Log("Passhthrough test: " + FindObjectOfType().getDices()[1]); } public void test2() { var upgrade = FindObjectOfType(); Debug.Log("akcio: " + upgrade.akcio[upgrade.getAkcioIndex()]); } }