Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using BaseGameLogic.UI;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6.  
  7. public class NewBehaviourScript : MonoBehaviour
  8. {
  9. public InstantiateControlContrainer container;
  10. public Transform tran;
  11.  
  12. void Start()
  13. {
  14. var b = container.InstantiateControl<ButtonControl>("Nic", ref tran);
  15. b.button.onClick.AddListener(()=>Debug.Log("Whatever"));
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement