/** * @param onGroundState 땅위에서 애니메이션 상태 * @param offGroundState 공중에서 애니메이션 상태 * @param onClimbing 벽타기 중 애니메이션 상태 * @param playerAction 플레이어만이 행동 애니메이션 상태 */ public virtual void NotifyState(OnGround onGroundState, OffGround offGroundState, OnClimbing onClimbing, PlayerAction playerAction) { _onGroundState = onGroundState; _offGroundState = offGroundState; _onClimbing = onClimbing; _playerAction = playerAction; HandleAnim(); }
public override void NotifyState(OnGround onGroundState, OffGround offGroundState) { base.NotifyState(onGroundState, offGroundState); _onClimbing = PlayerState.OnClimbing.NONE; _playerAction = PlayerState.PlayerAction.NONE; }
/** * @brief * 객체에게 데이터를 받는 함수 * 단, 데이터는 애니메이션을 위한 값 */ public virtual void NotifyState(OnGround onGroundState, OffGround offGroundState) { _onGroundState = onGroundState; _offGroundState = offGroundState; this.HandleAnim(); }