Пример #1
0
 public GroundedController(PlayerController playerController)
     : base(playerController)
 {
     if (playerController.CrouchSettings.EnableCrouching)
     {
         _crouchController = new CrouchController(PlayerController);
     }
 }
Пример #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>();
 }
Пример #4
0
 void Start()
 {
     this.crouchControllerScript = GetComponent <CrouchController>();
     healthScript   = GetComponent <Health>();
     this.isFalling = false;
 }