void Start() { m_collider = GetComponent <CapsuleCollider>(); m_playerHeight = m_collider.bounds.size.y; m_playerWidth = m_collider.bounds.size.x; m_controllerClimbing = GetComponent <ControllerClimbing>(); m_climbingIK = GetComponentInChildren <ClimbingIK>(); this.enabled = false; }
void Start() { m_rigidbody = GetComponent <Rigidbody>(); m_collider = GetComponent <CapsuleCollider>(); m_model = transform.FindChild("Model").transform; m_inputManager = GameObject.FindObjectOfType <InputManager>(); m_animator = m_model.GetComponent <Animator>(); m_controllerClimbing = GetComponent <ControllerClimbing>(); CurrentMovementState = m_currentState; }
void Start() { m_controllerClimbing = GetComponent <ControllerClimbing>(); CapsuleCollider playerCollider = GetComponent <CapsuleCollider>(); m_playerWidth = playerCollider.bounds.size.x; m_playerHeight = playerCollider.bounds.size.y; m_model = transform.FindChild("Model"); this.enabled = false; }