DisableOnAwake.cs 250 B

123456789101112
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class DisableOnAwake : MonoBehaviour
  5. {
  6. // Start is called before the first frame update
  7. void Awake()
  8. {
  9. gameObject.SetActive(false);
  10. }
  11. }