导入R3,简单实现数据绑定UI,以及双向绑定
This commit is contained in:
@@ -6,8 +6,6 @@ using static UnityEngine.Rendering.VirtualTexturing.Debugging;
|
||||
|
||||
public class Boot : MonoBehaviour
|
||||
{
|
||||
public GameObject MainUICanvas;
|
||||
public Camera UICamera;
|
||||
public Camera MainCamera;
|
||||
public EPlayMode PlayMode = EPlayMode.EditorSimulateMode;
|
||||
void Awake()
|
||||
@@ -17,14 +15,10 @@ public class Boot : MonoBehaviour
|
||||
#endif
|
||||
Application.targetFrameRate = 60;
|
||||
Application.runInBackground = true;
|
||||
DontDestroyOnLoad(MainUICanvas);
|
||||
DontDestroyOnLoad(UICamera);
|
||||
DontDestroyOnLoad(MainCamera);
|
||||
}
|
||||
async void Start()
|
||||
{
|
||||
GameManager.Inst.UICamera = UICamera;
|
||||
GameManager.Inst.MainUICanvas = MainUICanvas;
|
||||
bool updateSuccess = await PatchManager.Inst.StartOperation(PlayMode);
|
||||
if (updateSuccess)
|
||||
await EnterGame();
|
||||
|
||||
Reference in New Issue
Block a user