Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     rb             = FindObjectOfType <RbCharacterMovements>();
     positioner     = FindObjectOfType <CameraPositioner>();
     weaponManager  = FindObjectOfType <WeaponManager>();
     weaponManager1 = FindObjectOfType <WeaponManager>();
     btnAccepeter.onClick.AddListener(btnAccepter_OnClick);
     btnRefuser.onClick.AddListener(btnRefuser_OnClick);
     Cursor.lockState = CursorLockMode.Locked;
 }
Ejemplo n.º 2
0
 //public GameObject pauseMenu;
 // Start is called before the first frame update
 void Start()
 {
     //Cursor.lockState = CursorLockMode.Locked;
     rb               = FindObjectOfType <RbCharacterMovements>();
     positioner       = FindObjectOfType <CameraPositioner>();
     weaponManager    = GameObject.Find("SciFiGunLightBlack").GetComponent <WeaponManager>();
     weaponManager1   = GameObject.Find("AK74").GetComponent <WeaponManager>();
     Cursor.lockState = CursorLockMode.Locked;
     //weaponManager = FindObjectOfType<WeaponManager>();
 }
Ejemplo n.º 3
0
 //public Slider slider;
 // Start is called before the first frame update
 void Start()
 {
     volumeAmbiance.onValueChanged.AddListener(volumeAmbiance_OnValueChanged);
     volumeFusil.onValueChanged.AddListener(volumeFusil_OnValueChanged);
     volumeFusilEnnemie.onValueChanged.AddListener(volumeFusilEnnemie_OnValueChanged);
     volumeExplosion.onValueChanged.AddListener(volumeBombe_OnValueChanged);
     rb            = FindObjectOfType <RbCharacterMovements>();
     positioner    = FindObjectOfType <CameraPositioner>();
     weaponManager = FindObjectOfType <WeaponManager>();
     //slider.onValueChanged.AddListener(volumeSlider_OnValueChanged);
 }
 // Start is called before the first frame update
 void Start()
 {
     currentBullets = bulletPerMag;
     audioSource    = GetComponent <AudioSource>();
     mainCam        = Camera.main;
     //hitParticule.SetActive(false);
     muzzleFlash.SetActive(false);
     animatorEly = GetComponent <Animator>();
     //weaponManager = FindObjectOfType<WeaponManager>();
     rb = FindObjectOfType <RbCharacterMovements>();
     //TxtScore = GameObject.Find("TxtScore").GetComponent<Text>();
     swat = GameObject.FindGameObjectsWithTag("Swat");
 }
Ejemplo n.º 5
0
    void Start()
    {
        // Assigner le Rigidbody
        rb = GetComponent <Rigidbody>();

        //Assigner l'animator
        animatorEly = GetComponent <Animator>();

        //on instantie le RbCharacterMovements
        rbCharacter = GameObject.Find("ely_k_atienza").GetComponent <RbCharacterMovements>();

        //cameraposition = GameObject.Find("ely_k_atienza").GetComponent<CameraPositioner>();

        healthBar = healthMax;

        //options = GameObject.Find("ely_k_atienza").GetComponent<Options>();
    }
Ejemplo n.º 6
0
    //private CameraPositioner cameraposition;

    // Start is called before the first frame update
    void Start()
    {
        rb            = FindObjectOfType <RbCharacterMovements>();
        weaponManager = FindObjectOfType <WeaponManager>();
        //cameraposition = GameObject.Find("ely_k_atienza").GetComponent<CameraPositioner>();
    }