void Start() { pos = transform; rigidBody = GetComponent <Rigidbody>(); dannyM = GetComponent <DannyMovement> (); charMove = GetComponent <StrongManMovement>(); userInput = GetComponent <UserInput>(); sUinput = GetComponent <StrongManUserInput> (); anim = GetComponent <Animator>(); jumpCounter = 2f; sphereCol = GetComponent <SphereCollider> (); cam = Camera.main; spawnAlly1 = cam.GetComponent <BlockAllySpawn>(); }
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>(); } }