private void Awake() { _cpMain = transform.parent.GetComponent <CpMain>(); _caBoost = transform.parent.GetComponent <CaBoost>(); _chromaticAberration = _profile.GetSetting <ChromaticAberration>(); _lensDistortion = _profile.GetSetting <LensDistortion>(); }
// Start is called before the first frame update void Start() { if (cpMain == null) { cpMain = FindObjectOfType <CpMain>(); } CaBoost = cpMain.GetComponent <CaBoost>(); CaJump = cpMain.GetComponent <CaJump>(); }
// Start is called before the first frame update private void Awake() { _caBoost = transform.parent.GetComponent <CaBoost>(); _cpMain = transform.parent.GetComponent <CpMain>(); }