// Use this for initialization void Start() { manController = GetComponent <Manoeuvre.ManoeuvreFPSController>(); weaponLogic = GetComponent <FPSWeaponLogic>(); //Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; }
public void Initialize(ManoeuvreFPSController controller) { _controller = controller; currentHealth = Health; DamageVignette = GameObject.Find("DamageVignett").GetComponent <CanvasGroup>(); }
public void Initialize(ManoeuvreFPSController controller) { _controller = controller; currentHealth = Health; // DamageVignette = GameObject.Find("DamageVignett").GetComponent<CanvasGroup>(); //Add sound source source = controller.gameObject.AddComponent <AudioSource>(); }
private void Awake() { Instance = this; }
private void OnEnable() { _Controller = (ManoeuvreFPSController)target; }
// Use this for initialization void Start() { camPos = transform.localPosition; charController = GetComponentInParent <CharacterController>(); fpsController = GetComponentInParent <ManoeuvreFPSController>(); }