导入R3,简单实现数据绑定UI,以及双向绑定
This commit is contained in:
15
Assets/GameFramework/Runtime/MainUICanvas.cs
Normal file
15
Assets/GameFramework/Runtime/MainUICanvas.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class MainUICanvas : SingletonMono<MainUICanvas>
|
||||
{
|
||||
public GameObject InitBg;
|
||||
public Transform Top;
|
||||
public Transform Medium;
|
||||
public Transform Bottom;
|
||||
public Camera UICamera;
|
||||
private void Awake()
|
||||
{
|
||||
DontDestroyOnLoad(gameObject);
|
||||
DontDestroyOnLoad(UICamera);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user