2026-03-17 14:19 FPS시점의 Strafe캐릭터 조작과 에임모드 전환
This commit is contained in:
@@ -17,7 +17,7 @@ public class LevelManager : MonoBehaviour
|
||||
[SerializeField] private GameObject[] _playableCharacterPrefabs; //플레이어가 될수 있는 캐릭터들 프리팹 할당
|
||||
public GameObject[] PlayableCharacterPrefabs { get { return _playableCharacterPrefabs; } private set { _playableCharacterPrefabs = value; } }
|
||||
public GameObject CurrentCharacter { get; private set; } // 현재 캐릭터
|
||||
public PlayerCharacterController CurrentCharacterController { get { return CurrentCharacter?.GetComponent<PlayerCharacterController>(); } } // 현재 캐릭터의 컨트롤러
|
||||
public PlayerCharacterController CurrentCharacterController { get { return CurrentCharacter == null ? null : CurrentCharacter.GetComponent<PlayerCharacterController>(); } } // 현재 캐릭터의 컨트롤러
|
||||
public int CurrentCharacterIdx { get; private set; } //현재캐릭터 인덱스
|
||||
#endregion
|
||||
|
||||
@@ -102,6 +102,8 @@ public void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
||||
InputManager.Instance.OnMoveEvent += CurrentCharacterController.MoveInput;
|
||||
InputManager.Instance.OnSprintEvent += CurrentCharacterController.SprintInput;
|
||||
InputManager.Instance.OnJumpEvent += CurrentCharacterController.JumpInput;
|
||||
InputManager.Instance.OnAimToggleEvent += CurrentCharacterController.AimToggleInput;
|
||||
InputManager.Instance.OnLookEvent += CurrentCharacterController.LookInput;
|
||||
//InputManager.Instance.OnNormalAttackEvent;
|
||||
//InputManager.Instance.OnHeavyAttackEvent;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user