Files
Anonymous Raccoon bcfac0a90b Reuploading project
2018-03-04 01:11:29 +01:00

20 lines
475 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CamAntiClone : MonoBehaviour
{
private void Awake()
{
if (Camera.main != null)
{
Destroy(gameObject);
return;
}
GetComponent<Camera>().enabled = true;
GetComponent<AudioListener>().enabled = true;
GetComponent<CamDestroy>().enabled = true;
GetComponent<Brightness>().enabled = true;
}
}