ActiveStateToggler.cs 185 B

123456789
  1. using UnityEngine;
  2. using System.Collections;
  3. public class ActiveStateToggler : MonoBehaviour {
  4. public void ToggleActive () {
  5. gameObject.SetActive (!gameObject.activeSelf);
  6. }
  7. }