Esempio n. 1
0
 public GroundedController(PlayerController playerController)
     : base(playerController)
 {
     if (playerController.CrouchSettings.EnableCrouching)
     {
         _crouchController = new CrouchController(PlayerController);
     }
 }
Esempio n. 2
0
 void Start()
 {
     this.crouchControllerScript = GetComponent<CrouchController>();
     healthScript = GetComponent<Health>();
     this.isFalling = false;
 }
 void Start()
 {
     m_characterController = GetComponent <CharacterController>();
     m_sprintController    = GetComponent <SprintController>();
     m_crouchController    = GetComponent <CrouchController>();
 }
Esempio n. 4
0
 void Start()
 {
     this.crouchControllerScript = GetComponent <CrouchController>();
     healthScript   = GetComponent <Health>();
     this.isFalling = false;
 }