Beispiel #1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     FindChildrenControl <Button>();
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     controller = GetComponent <CharacterController>();
     ui         = GameObject.Find("Canvas").GetComponent <UI_Management>();
 }