Advertisement
shadowplaycoding

P024_CloseUI

Aug 18th, 2017
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. ?using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5.  
  6. public class CloseUI : MonoBehaviour {
  7.  
  8.    
  9.     public void ClosePanel()
  10.     {
  11.         if (this.transform.parent != null)
  12.         {
  13.             this.transform.parent.gameObject.SetActive(false);
  14.         }
  15.     }
  16.  
  17.     /*
  18.    Copyright Shadowplay Coding 2017 - see www.shadowplaycoding.com for licensing details
  19.    Removing this comment forfits any rights given to the user under licensing.
  20.    */
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement