示例#1
0
    //CamShootRL rl;

    void Awake()
    {
        dannyMovement = player.GetComponent <DannyMovement>();             // movespeedmultiplier is a float
        playerHealth  = player.GetComponent <PlayerHealth1>();             //
        ar            = assualtRifle.GetComponent <AssualtRifleRaycast>(); //
        hg            = handGun.GetComponent <HandGunRaycast>();           //
        sg            = shotGun.GetComponent <ShotGunRacast>();            //
        //rl = rocketLauncher.GetComponent<CamShootRL>();		//
    }
示例#2
0
    void Start()
    {
        //pos = transform;
        rigidBody   = GetComponent <Rigidbody>();
        dannyM      = GetComponent <DannyMovement> ();
        charMove    = GetComponent <StrongManMovement>();
        jumpCol     = GetComponent <CapsuleCollider> ();
        sUinput     = GetComponent <StrongManUserInput> ();
        anim        = GetComponent <Animator>();
        jumpCounter = 2f;
//		cam = Camera.main;

        colNormHeight = jumpCol.height;
    }
    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>();
    }
示例#4
0
    void Start()
    {
        tutorialPanel.SetActive(false);
        setInfo = true;

        userInput         = player.GetComponent <UserInput>();
        dannyMovement     = player.GetComponent <DannyMovement>();
        dannyWeaponScript = player.GetComponent <DannyWeaponScript>();
        jumpingScript     = player.GetComponent <JumpingRaycastDown>();
        rigidBody         = player.GetComponent <Rigidbody>();

        bToUseImage = buttonToUse2.GetComponent <Image>();
        bToUseText  = buttonToUse2.GetComponentInChildren <Text>();

        tutorial = false;

        if (tutorial)
        {
            tut1  = true;
            tut2  = true;
            tut3  = true;
            tut4  = true;
            tut5  = true;
            tut6  = true;
            tut7  = true;
            tut8  = true;
            tut9  = true;
            tut10 = true;
            tut11 = true;
        }
        else if (!tutorial)
        {
            tut1  = false;
            tut2  = false;
            tut3  = false;
            tut4  = false;
            tut5  = false;
            tut6  = false;
            tut7  = false;
            tut8  = false;
            tut9  = false;
            tut10 = false;
            tut11 = false;
        }
    }
示例#5
0
    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>();
        }
    }
示例#6
0
    void Awake()
    {
//		anim = GetComponent<Animator>();
//		playerAudio = GetComponent<AudioSource>();
        dannyWeapons  = GetComponent <DannyWeaponScript> ();
        dannyMovement = GetComponent <DannyMovement>();
        charMove      = GetComponent <StrongManMovement> ();
        userInput     = GetComponent <UserInput> ();
        sUinput       = GetComponent <StrongManUserInput>();

        if (displayModel != null)
        {
            rend = displayModel.GetComponent <Renderer>();
        }

        currentHealth = startingHealth;
        countPower    = startingPower;
        maxHealth     = startingHealth;
        maxPower      = startingPower;

        regColor = rend.material.color;
    }