移动和旋转
This commit is contained in:
33
Assets/Scripts/Game.cs
Normal file
33
Assets/Scripts/Game.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using NBF.Fishing2;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class Game : MonoBehaviour
|
||||
{
|
||||
public static Game Instance { get; private set; }
|
||||
|
||||
|
||||
public static InputComponent Input;
|
||||
|
||||
/// <summary>
|
||||
/// 主摄像机
|
||||
/// </summary>
|
||||
public static Camera MainCamera { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摄像机配置
|
||||
/// </summary>
|
||||
public static CameraScriptObject CameraConfig { get; private set; }
|
||||
|
||||
public static long SelfId;
|
||||
private void Awake()
|
||||
{
|
||||
Instance = this;
|
||||
CameraConfig = Resources.Load<CameraScriptObject>(nameof(CameraConfig));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user