【重构】部分关卡代码

Android_release
zhangaotian 2024-08-07 18:51:02 +08:00
parent f5ca0a09a7
commit 76af4a7d66
28 changed files with 34 additions and 23 deletions

View File

@ -10,6 +10,7 @@ using Sirenix.OdinInspector;
using Sirenix.Utilities.Editor; using Sirenix.Utilities.Editor;
using UnityEngine.Serialization; using UnityEngine.Serialization;
using System.Collections.Generic; using System.Collections.Generic;
using Gameplay.ForestLevel;
using Random = UnityEngine.Random; using Random = UnityEngine.Random;
using UnityEditor.SceneManagement; using UnityEditor.SceneManagement;
using Sirenix.OdinInspector.Editor; using Sirenix.OdinInspector.Editor;

View File

@ -5,6 +5,7 @@ using Gameplay.Level;
using UnityEngine.UI; using UnityEngine.UI;
using Framework.Manager; using Framework.Manager;
using Framework.Constants; using Framework.Constants;
using Gameplay.ForestLevel;
namespace Framework.UI namespace Framework.UI
{ {

View File

@ -6,6 +6,7 @@ using Framework.Event;
using Framework.Manager; using Framework.Manager;
using Gameplay.Level; using Gameplay.Level;
using Framework.UI; using Framework.UI;
using Gameplay.ForestLevel;
using PhxhSDK; using PhxhSDK;
public partial class SROptions public partial class SROptions

View File

@ -3,7 +3,7 @@ using Gameplay.Manager;
using UnityEngine; using UnityEngine;
using PhxhSDK; using PhxhSDK;
namespace Gameplay.Level namespace Gameplay.ForestLevel
{ {
public class DestroyPlank : MonoBehaviour public class DestroyPlank : MonoBehaviour
{ {

View File

@ -1,7 +1,8 @@
using System.Collections.Generic; using System.Collections.Generic;
using Gameplay.Level;
using UnityEngine; using UnityEngine;
namespace Gameplay.Level namespace Gameplay.ForestLevel
{ {
public class Kong public class Kong
{ {

View File

@ -1,15 +1,16 @@
using Object = UnityEngine.Object; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using Cysharp.Threading.Tasks; using Cysharp.Threading.Tasks;
using Framework.Constants; using Framework.Constants;
using Gameplay.Level;
using Gameplay.Manager; using Gameplay.Manager;
using System.Linq;
using UnityEngine;
using PhxhSDK; using PhxhSDK;
using System;
using TMPro; using TMPro;
using UnityEngine;
using Object = UnityEngine.Object;
namespace Gameplay.Level namespace Gameplay.ForestLevel
{ {
public class KongManager : Singlenton<KongManager>, IInitable public class KongManager : Singlenton<KongManager>, IInitable
{ {

View File

@ -4,6 +4,7 @@ using Framework.BI;
using Gameplay.Manager; using Gameplay.Manager;
using LC.Newtonsoft.Json; using LC.Newtonsoft.Json;
using Cysharp.Threading.Tasks; using Cysharp.Threading.Tasks;
using Gameplay.ForestLevel;
using Constants = Framework.Constants.Constants; using Constants = Framework.Constants.Constants;
namespace Gameplay.Level namespace Gameplay.Level

View File

@ -1,9 +1,9 @@
using System;
using System.Collections.Generic; using System.Collections.Generic;
using Sirenix.OdinInspector; using Sirenix.OdinInspector;
using UnityEngine; using UnityEngine;
using System;
namespace Gameplay.Level namespace Gameplay.ForestLevel
{ {
[Serializable] [Serializable]
public class LevelData public class LevelData

View File

@ -1,10 +1,11 @@
using System; using System;
using System.Linq;
using UnityEngine;
using Framework.Constants;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using Framework.Constants;
using Gameplay.Level;
using UnityEngine;
namespace Gameplay.Level namespace Gameplay.ForestLevel
{ {
/// <summary> /// <summary>
/// 用于检测整块木板和洞口位置关系 (并非木板的孔和洞的位置) /// 用于检测整块木板和洞口位置关系 (并非木板的孔和洞的位置)

View File

@ -1,9 +1,9 @@
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine;
using System.Linq; using System.Linq;
using PhxhSDK; using PhxhSDK;
using UnityEngine;
namespace Gameplay.Level namespace Gameplay.ForestLevel
{ {
public class Plank : IUpdatable, IInitable public class Plank : IUpdatable, IInitable
{ {

View File

@ -1,14 +1,15 @@
using Object = UnityEngine.Object; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using Cysharp.Threading.Tasks; using Cysharp.Threading.Tasks;
using Framework.Constants; using Framework.Constants;
using Gameplay.Level;
using Gameplay.Manager; using Gameplay.Manager;
using UnityEngine;
using System.Linq;
using PhxhSDK; using PhxhSDK;
using System; using UnityEngine;
using Object = UnityEngine.Object;
namespace Gameplay.Level namespace Gameplay.ForestLevel
{ {
public class PlankManager : Singlenton<PlankManager>, IInitable, IUpdatable public class PlankManager : Singlenton<PlankManager>, IInitable, IUpdatable
{ {

View File

@ -1,6 +1,6 @@
using UnityEngine; using UnityEngine;
namespace Gameplay.Level namespace Gameplay.ForestLevel
{ {
public class Thumbtack public class Thumbtack
{ {

View File

@ -1,7 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
namespace Gameplay.Level.Operation namespace Gameplay.ForestLevel
{ {
public class UndoOperation public class UndoOperation
{ {

View File

@ -5,6 +5,7 @@ using Gameplay.Manager;
using Framework.Manager; using Framework.Manager;
using Framework.Constants; using Framework.Constants;
using Cysharp.Threading.Tasks; using Cysharp.Threading.Tasks;
using Gameplay.ForestLevel;
using UnityEngine.SceneManagement; using UnityEngine.SceneManagement;
using UnityEngine.AddressableAssets; using UnityEngine.AddressableAssets;
using Constants = Framework.Constants.Constants; using Constants = Framework.Constants.Constants;

View File

@ -12,8 +12,8 @@ using Framework.Manager;
using Framework.Constants; using Framework.Constants;
using Event = cfg.BI.Event; using Event = cfg.BI.Event;
using Cysharp.Threading.Tasks; using Cysharp.Threading.Tasks;
using Gameplay.Level.Operation;
using System.Collections.Generic; using System.Collections.Generic;
using Gameplay.ForestLevel;
namespace Gameplay.Manager namespace Gameplay.Manager
{ {

View File

@ -10,6 +10,7 @@ using Framework.Manager;
using Framework.Constants; using Framework.Constants;
using Gameplay.LoadingExecutor; using Gameplay.LoadingExecutor;
using System.Collections.Generic; using System.Collections.Generic;
using Gameplay.ForestLevel;
using Object = UnityEngine.Object; using Object = UnityEngine.Object;
using Vector3 = UnityEngine.Vector3; using Vector3 = UnityEngine.Vector3;

View File

@ -8,6 +8,7 @@ using UnityEngine.UI;
using Framework.Event; using Framework.Event;
using Gameplay.Manager; using Gameplay.Manager;
using Framework.Constants; using Framework.Constants;
using Gameplay.ForestLevel;
public class UILevelPanelController : UIWindow public class UILevelPanelController : UIWindow
{ {