ShowHide.cs 299 B

1234567891011121314151617
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace TobyFredson
  5. {
  6. public class ShowHide : MonoBehaviour{
  7. public void showIt(GameObject obj){
  8. obj.SetActive (true);
  9. }
  10. public void hideIt(GameObject obj){
  11. obj.SetActive (false);
  12. }
  13. }
  14. }