private void Start() { characterController = GetComponent <CharacterController>(); animator = GetComponent <Animator>(); gunShot = GetComponent <GunShot>(); currentLookSpeed = lookSpeed; }
void Start() { Cursor.lockState = CursorLockMode.Locked; Cursor.visible = (false); Time.timeScale = 1; glock = attack.GetComponent<Glock>(); gunShot = attack.GetComponent<GunShot> (); }
// Use this for initialization void Start() { Screen.lockCursor = true; SwitchWeapon(defaultWeapon); scrollSensitivity = 0.5f; scrollValue = 0; weaponIndex = 0; GunShot boom = GetComponent <GunShot>(); }
public void Setup() { this.enabled = true; _gunShot = GetComponent <GunShot>(); canvas = GameObject.FindGameObjectWithTag("Canvas"); hp = GameManager.instance.hud.HP; wasEnabledSrcipts = new bool[disableOnDeathScripts.Length]; for (int i = 0; i < wasEnabledSrcipts.Length; i++) { wasEnabledSrcipts[i] = disableOnDeathScripts[i].enabled; } SetDefaults(); }
// Use this for initialization void Start() { gun = bulletSpawn.GetComponent <GunShot>(); }
// Use this for initialization void Start() { gun = bulletSpawn.GetComponent <GunShot>(); // rb = GetComponent<Rigidbody>(); mover = gameObject.GetComponent <PlayerMover>(); }