From 60571ce1c77c5c323dff0d13e0fcd1ae9c22b40a Mon Sep 17 00:00:00 2001
From: wangguan <wangguan@kt007.com>
Date: Wed, 18 Nov 2020 19:34:55 +0800
Subject: [PATCH] 添加Manager的时候初始化DOTween 切换场景的时候clear了

---
 Assets/Scripts/Manager/ManagerRoot.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Assets/Scripts/Manager/ManagerRoot.cs b/Assets/Scripts/Manager/ManagerRoot.cs
index 0272d67..d5ca981 100644
--- a/Assets/Scripts/Manager/ManagerRoot.cs
+++ b/Assets/Scripts/Manager/ManagerRoot.cs
@@ -2,6 +2,7 @@
 using System.Collections;
 using System.Collections.Generic;
 using Core.Utilities;
+using DG.Tweening;
 using Protobuf;
 using UnityEngine;
 
@@ -15,6 +16,8 @@
             GameObject root = GameObject.Find("ManagerRoot");
             if (root == null)
             {
+                DOTween.Init(true, true, LogBehaviour.Verbose).SetCapacity(200, 10);
+
                 root = new GameObject("ManagerRoot");
                 root.AddComponent<DoNotDestory>();
                 root.AddComponent<MasterSocket>();

--
Gitblit v1.9.1