mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-30 05:23:06 +00:00
26 lines
556 B
C#
26 lines
556 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace RhythmHeavenMania
|
||
|
{
|
||
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|