Example #1
0
    void Awake()
    {
        sound        = GetComponent <AudioSource>();
        playerHealth = GetComponent <PlayerHealth1>();

        arRC = assualtRifle.GetComponent <AssualtRifleRaycast>();
        hgRC = handGun.GetComponent <HandGunRaycast>();
        sgRC = shotGun.GetComponent <ShotGunRacast>();
    }
Example #2
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>();		//
    }