add project files

This commit is contained in:
Boris Nikolaev
2026-08-14 01:58:31 +03:00
parent 9134cad79b
commit 5f1e94b653
4399 changed files with 12286903 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
using UnityEngine;
public class Checkpoints : CoreBehaviour
{
private Animator anim;
public bool isPass { get; private set; }
private void Start()
{
InstantiatePrefab();
}
private void InstantiatePrefab()
{
GameObject instance = UnityEngine.Object.Instantiate(base.CoreDef.GetProgression().Checkpoints, base.transform);
if (instance != null)
{
anim = instance.GetComponent<Animator>();
}
}
public void PassCheckpoint()
{
isPass = true;
if (anim != null)
{
anim.SetBool("Pass", value: true);
}
}
}