From 38afc6f2fc317ac74b6eaeba5788bacf6239f453 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 14 十一月 2018 17:13:00 +0800
Subject: [PATCH] 4792 【1.2】原随包的配置全部支持热更新。
---
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