mirror of
https://github.com/zoriya/Skillfight.git
synced 2026-05-23 23:26:00 +00:00
20 lines
475 B
C#
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;
|
|
}
|
|
}
|