public void Initialize(WeaponHolder weaponHolder, WeaponScriptable weaponScriptable) { WeaponHolder = weaponHolder; CrosshairComponent = weaponHolder.Crosshair; if (weaponScriptable) { WeaponStats = weaponScriptable.WeaponStats; } }
private void Awake() { PlayerAnimator = GetComponent <Animator>(); PlayerController = GetComponent <PlayerController>(); if (PlayerController) { PlayerCrosshair = PlayerController.CrossHair; } ViewCamera = Camera.main; }
//public string interactMethod = "Interact"; // Use this for initialization void Start() { crossHairScript = GetComponent<CrossHairScript>(); }
public void Initialize(WeaponHolder weaponHolder, CrossHairScript crossHair) { WeaponHolder = weaponHolder; CrosshairComponent = crossHair; }
// Use this for initialization void Awake() { instance = this; cam = GameObject.Find("Player").GetComponentInChildren<Camera>(); }