Beispiel #1
0
 void Start()
 {
     gravity        = Physics.gravity * gravityModifier;
     meleeSwipe     = meleeWeapon.GetComponent <Animator>();
     playerCollider = GetComponent <CapsuleCollider>();
     controller     = GetComponent <CharacterController>();
     aiFollower     = GameObject.Find("AIFollow").GetComponent <AITeleport>();
     startingHeight = transform.position.y;
     fallAmount     = startingHeight + 5.0f;
     currentState   = DraggingState.NONE;
     //ifFallen = GameObject.Find("BottomlessPit_Half").GetComponent<BottomlessPit>();
 }
Beispiel #2
0
 void Start()
 {
     gravity             = Physics.gravity * gravityModifier;
     meleeSwipe          = meleeWeapon.GetComponent <Animator>();
     playerCollider      = GetComponent <CapsuleCollider>();
     controller          = GetComponent <CharacterController>();
     spinWheel           = GameObject.FindGameObjectWithTag("SpinWheel").GetComponent <SpinWheel>();
     aiFollower          = GameObject.Find("AIFollow").GetComponent <AITeleport>();
     startingHeight      = transform.position.y;
     fallAmount          = startingHeight + 5.0f;
     currentState        = DraggingState.NONE;
     medkitScavengeTimer = medvialScavengeMaxHoldTime;
 }
Beispiel #3
0
 void Start()
 {
     player     = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>();
     aiFollower = GameObject.Find("AIFollow").GetComponent <AITeleport>();
     fallAmount = player.startingHeight + 5.0f;
 }