SlopeCharacter.cs (492B)
1 using System; 2 using UnityEngine; 3 4 namespace Slimecing.Characters 5 { 6 [RequireComponent(typeof(CharacterMovementController))] 7 public class SlopeCharacter : MonoBehaviour 8 { 9 [SerializeField] private float maxGroundAngle; 10 11 private float groundAngle; 12 private RaycastHit hitInfo; 13 14 private void Update() 15 { 16 CalculateGroundAngle(); 17 } 18 19 private void CalculateGroundAngle() 20 { 21 throw new NotImplementedException(); 22 } 23 } 24 }