コード例 #1
0
    private void Awake()
    {
        _cpMain  = transform.parent.GetComponent <CpMain>();
        _caBoost = transform.parent.GetComponent <CaBoost>();

        _chromaticAberration = _profile.GetSetting <ChromaticAberration>();
        _lensDistortion      = _profile.GetSetting <LensDistortion>();
    }
コード例 #2
0
    // Start is called before the first frame update
    void Start()
    {
        if (cpMain == null)
        {
            cpMain = FindObjectOfType <CpMain>();
        }

        CaBoost = cpMain.GetComponent <CaBoost>();
        CaJump  = cpMain.GetComponent <CaJump>();
    }
コード例 #3
0
    // Start is called before the first frame update

    private void Awake()
    {
        _caBoost = transform.parent.GetComponent <CaBoost>();
        _cpMain  = transform.parent.GetComponent <CpMain>();
    }