void Start() { netPlayerHealth = GetComponent <NetPlayerHealth>(); netWeaponShoot = GetComponentInChildren <NetWeaponShoot>(); netShoot = GetComponent <NetShoot>(); netWeaponShoot.stuntDuration = stuntTime; }
// 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> (); }
void Start() { netPlayerHealth = GetComponent <NetPlayerHealth>(); netWeaponShoot = GetComponentInChildren <NetWeaponShoot>(); netShoot = GetComponent <NetShoot>(); initialRange = netWeaponShoot.range; initialShootDelay = netWeaponShoot.shootDelay; }
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> (); }