From d597f340f934866e69a460bacb954a1b38057742 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期四, 15 十一月 2018 10:53:44 +0800
Subject: [PATCH] 4792 (只在master)原随包的配置全部支持热更新。
---
Fight/Actor/TestPlayerController.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Fight/Actor/TestPlayerController.cs b/Fight/Actor/TestPlayerController.cs
index 0d7497b..1421771 100644
--- a/Fight/Actor/TestPlayerController.cs
+++ b/Fight/Actor/TestPlayerController.cs
@@ -22,7 +22,7 @@
{
if (CameraController.Instance == null)
{
- Instantiate(Resources.Load<GameObject>("Prefabs/GameCamera"));
+ Instantiate(BuiltInLoader.LoadPrefab("GameCamera"));
}
CameraController.Instance.SetLookTarget(transform);
@@ -31,7 +31,7 @@
m_Animator = gameObject.AddMissingComponent<Animator>();
SystemSetting.Instance.SetQualityLevel(GameQuality.High);
- var shadowPrefab = Resources.Load<GameObject>("Prefabs/ActorShadowCaster");
+ var shadowPrefab = BuiltInLoader.LoadPrefab("ActorShadowCaster");
var shadowCaster = Instantiate(shadowPrefab).GetComponent<ActorShadowCaster>();
if (shadowCaster != null)
--
Gitblit v1.8.0