updat core

This commit is contained in:
2024-10-21 16:20:37 +08:00
parent afc7f2d1bc
commit 93fe7b4d04
33 changed files with 1381 additions and 478 deletions

View File

@@ -0,0 +1,26 @@
using Sirenix.OdinInspector;
using UnityEngine;
namespace Game.Component
{
public class ScenePart : MonoBehaviour
{
public TextAsset mapCacheData;
public PolygonCollider2D cameraCollider;
public Transform createPos;
public int completeConditionNumber = 10;
public float playerBaseSpeed = 4f;
[LabelText ("当前完成数:")] private int _currentConditionNumber = 0;
public bool IsComplete => _currentConditionNumber >= completeConditionNumber;
public bool AddConditionNumber (int number = 1)
{
this._currentConditionNumber += number;
return _currentConditionNumber >= completeConditionNumber;
}
}
}