public string UIEventKey; // Event key which determines which UI-related unity event is listened to void Start() { if (BasketballGAController) { BasketballGAController.AddUIEvent(UIEventKey, UpdateText); } }