Advertisement
Guest User

invoke after time

a guest
May 26th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1.     public GameObject button;
  2.  
  3.     // Use this for initialization
  4.     void Start () {
  5.         Invoke("ShowButton", 2);
  6.     }
  7.  
  8.     // Update is called once per frame
  9.     void Update () {
  10.  
  11.     }
  12.  
  13.     void ShowButton()
  14.     {
  15.         Debug.Log("Activating Button");
  16.         button.SetActive(true);
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement