MB2_TestShowHide.cs 451 B

1234567891011121314151617181920212223
  1. using UnityEngine;
  2. using System.Collections;
  3. public class MB2_TestShowHide : MonoBehaviour {
  4. public MB3_MeshBaker mb;
  5. public GameObject[] objs;
  6. // Update is called once per frame
  7. void Update () {
  8. if (Time.frameCount == 100){
  9. mb.ShowHide(null,objs);
  10. mb.ApplyShowHide();
  11. Debug.Log("should have disappeared");
  12. }
  13. if (Time.frameCount == 200){
  14. mb.ShowHide(objs,null);
  15. mb.ApplyShowHide();
  16. Debug.Log("should show");
  17. }
  18. }
  19. }