【重构】部分关卡代码

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 UnityEngine.Serialization;
using System.Collections.Generic;
using Gameplay.ForestLevel;
using Random = UnityEngine.Random;
using UnityEditor.SceneManagement;
using Sirenix.OdinInspector.Editor;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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