【重构】部分关卡代码
parent
f5ca0a09a7
commit
76af4a7d66
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
|
@ -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
|
||||||
{
|
{
|
|
@ -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
|
||||||
{
|
{
|
|
@ -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
|
|
@ -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
|
|
@ -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>
|
||||||
/// 用于检测整块木板和洞口位置关系 (并非木板的孔和洞的位置)
|
/// 用于检测整块木板和洞口位置关系 (并非木板的孔和洞的位置)
|
|
@ -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
|
||||||
{
|
{
|
|
@ -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
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Gameplay.Level
|
namespace Gameplay.ForestLevel
|
||||||
{
|
{
|
||||||
public class Thumbtack
|
public class Thumbtack
|
||||||
{
|
{
|
|
@ -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
|
||||||
{
|
{
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue