// PlayerHealth1 playerHealth; //DannyWeaponScript dannyWeaponScript; // Use this for initialization void Start() { SetupAnimator(); rigidBody = GetComponent <Rigidbody> (); userInput = GetComponent <UserInput>(); sUinput = GetComponent <StrongManUserInput>(); //get the component needed to raise and lower the moveSpeedmultiplier variable // hudSpeedCheck = HUDSpeedBooster.speedAmount; // playerHealth = GetComponent<PlayerHealth1> (); if (blazeSwordObject != null) { setBlazeSword = blazeSwordObject.GetComponent <PlayerBowStaff>(); } //dannyWeaponScript = GetComponent<DannyWeaponScript>(); }
void Start() { if (Camera.main != null) { cam = Camera.main.transform; } if (GameMasterObject.isMultiplayer) { GameMasterObject.dannyNetwork = this.gameObject; GameMasterObject.getDannyInfo = true; PauseManager.getDannyInfo = true; GameMasterObject.dannyActive = true; GameMasterObject.strongmanActive = false; } spawnAllyBlock = cam.GetComponent <BlockAllySpawn> (); playerHealth = GetComponent <PlayerHealth1> (); charMove = GetComponent <DannyMovement> (); anim = GetComponent <Animator>(); freeCamLook = cameraGO.GetComponent <FreeCameraLook>(); // dannyWeapon = GetComponent<DannyWeaponScript>(); jumpRC = GetComponent <JumpingRaycastDown>(); shootCounter = 10; // if(lift != null) // { // anim2 = lift.GetComponent<Animator>(); // liftScript = lift.GetComponent<LiftScript> (); // } wZC = cameraGO.GetComponentInChildren <WeaponCameraZoom>(); turnSensitivity = GameMasterObject.turnSpeedNumber; if (bowStaffObject != null) { bowAttack = bowStaffObject.GetComponent <PlayerBowStaff>(); } if (blazeSwordObject != null) { blazeAttack = blazeSwordObject.GetComponent <PlayerBowStaff>(); } }
void Start() { setBlazeSword = sword.GetComponent <PlayerBowStaff>(); }