/* * \brief Initialise anything we don't know at construct time */ public void Create(CEntityPlayer player, Rigidbody body) { m_body = body; m_player = player; m_wallJump = player.GetComponent <CWallJump>(); m_ladderClimb = new CLadderClimb(); //m_ledgeGrabBox = transform.Find("Ledge_Grab_Detection").gameObject; m_invert = InsideTower ? -1 : 1; }
/* * \brief Initialise anything we don't know at construct time */ public void Create(CEntityPlayer player, Rigidbody body) { m_body = body; m_player = player; m_wallJump = player.GetComponent<CWallJump>(); m_ladderClimb = new CLadderClimb(); //m_ledgeGrabBox = transform.Find("Ledge_Grab_Detection").gameObject; m_invert = InsideTower ? -1 : 1; }