HeavenStudioPlus/Assets/Scripts/GameCamera.cs

26 lines
551 B
C#
Raw Normal View History

2022-02-03 02:09:50 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
2022-03-14 14:21:05 +00:00
namespace HeavenStudio
2022-02-03 02:09:50 +00:00
{
public class GameCamera : MonoBehaviour
{
public static GameCamera instance { get; private set; }
public new Camera camera;
[Header("Components")]
public Color baseColor;
private void Awake()
{
instance = this;
camera = this.GetComponent<Camera>();
}
private void Start()
{
camera.backgroundColor = baseColor;
}
}
}