// Use this for initialization public void Awake() { ARThreatsCanvas = scanGroup.transform.Find("ARThreatsCanvas").gameObject; cardsScanCanvas = scanGroup.transform.Find("cardsScanCanvas").gameObject; bigTextToChange = textsGroup.transform.Find("TextCanvas/bigTextPanel/bigText").GetComponent <Text>(); smallTextToChange = textsGroup.transform.Find("TextCanvas/smallTextPanel/smallText").GetComponent <Text>(); Screen.sleepTimeout = SleepTimeout.NeverSleep; threats = new int[nbThreats]; // just getting an instance of Texts to call init and initiate the static lists of texts. we will not need it later // there is probably a cleaner way to do this but meh Texts texts = Texts.Instance; texts.Init(); ResetVariables(); ManageStatusAction(); }