학생들 에셋 추가

This commit is contained in:
2026-07-15 16:06:46 +09:00
parent 18160cc301
commit afc011bcd6
74 changed files with 4239 additions and 25 deletions

View File

@@ -0,0 +1,30 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CliffCheck : GroundCheck
{
private Vector3 _initialGroundPos;
protected override void Start()
{
base.Start();
_initialGroundPos = Vector3.zero;
}
protected override void OnTriggerEnter(Collider other)
{
base.OnTriggerEnter(other);
if (other.CompareTag("Ground"))
{
if(_initialGroundPos == Vector3.zero)
{
_initialGroundPos = _parent.localPosition;
}
else
{
_parent.localPosition = _initialGroundPos;
}
}
}
}