power.cs
358 Bytes
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class power : MonoBehaviour
{
public GameObject phone;
public void phone_control()
{
if(phone.activeSelf == true)
{
phone.SetActive(false);
}
else
{
phone.SetActive(true);
}
}
}