Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
 private void Awake()
 {
     m_Rigidbody      = FunctionLibrary.GetIfNull(gameObject, m_Rigidbody);
     m_PlayerMovement = FunctionLibrary.GetIfNull(gameObject, m_PlayerMovement);
 }
Ejemplo n.º 3
0
    private void Awake()
    {
        m_Rigidbody = FunctionLibrary.GetIfNull(gameObject, m_Rigidbody);

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