private void Awake()
    {
        m_RigidBody        = FunctionLibrary.GetIfNull(gameObject, m_RigidBody);
        m_CapsuleComponent = FunctionLibrary.GetIfNull(gameObject, m_CapsuleComponent);

        m_CosGroundMaxSlope = Mathf.Cos(Mathf.Deg2Rad * m_GroundMaxSlope);
    }
Example #2
0
 private void Awake()
 {
     m_Rigidbody      = FunctionLibrary.GetIfNull(gameObject, m_Rigidbody);
     m_PlayerMovement = FunctionLibrary.GetIfNull(gameObject, m_PlayerMovement);
 }
Example #3
0
    private void Awake()
    {
        m_Rigidbody = FunctionLibrary.GetIfNull(gameObject, m_Rigidbody);

        m_GrappleObject = GameObject.Instantiate(m_GrapplingHookPrefab).transform;
    }