- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class RayCastColliders : MonoBehaviour
- {
- public MeshRenderer[] meshs;
- public void SetMeshEnable(bool flag)
- {
- for (int i = 0; i < meshs.Length; i++)
- {
- meshs[i].enabled = flag;
- }
- }
- }
|