You've already forked taptap2024_GJ_chidouren
26 lines
751 B
C#
26 lines
751 B
C#
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;
|
|
}
|
|
}
|
|
} |