Exemplo n.º 1
0
 void Start()
 {
     netPlayerHealth = GetComponent <NetPlayerHealth>();
     netWeaponShoot  = GetComponentInChildren <NetWeaponShoot>();
     netShoot        = GetComponent <NetShoot>();
     netWeaponShoot.stuntDuration = stuntTime;
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        // Inicialmente bloqueamos el cursor al cargar el objeto que tenga asignado este script
        Cursor.lockState = CursorLockMode.Locked;

        netFPSController = GetComponent <NetFPSController> ();
        netShoot         = GetComponent <NetShoot> ();
    }
Exemplo n.º 3
0
    void Start()
    {
        netPlayerHealth = GetComponent <NetPlayerHealth>();
        netWeaponShoot  = GetComponentInChildren <NetWeaponShoot>();
        netShoot        = GetComponent <NetShoot>();

        initialRange      = netWeaponShoot.range;
        initialShootDelay = netWeaponShoot.shootDelay;
    }
Exemplo n.º 4
0
 void Awake()
 {
     player = GetComponent <NetPlayer> ();
     // Recuperamos la referencia del componente NetworkAnimator
     anim = GetComponent <NetworkAnimator> ();
     // Recuperamos la referencia del componente NetFPSController
     fpsController = GetComponent <NetFPSController> ();
     // Recuperamos la referencia del componente NetShoot
     netShoot = GetComponent <NetShoot> ();
 }