// Use this for initialization void Start() { // アタッチされてないなら代入する if (Vignette == null) { Vignette = GetComponent <VignetteAndChromaticAberration>(); } if (MotionsBlur == null) { MotionsBlur = GetComponent <MotionBlur>(); } // けーコンフィグの宣言 hKeyConfigSettings hk = new hKeyConfigSettings(); hk.Init(); // 視差効果がオンになっているか //print(hKeyConfigSettings.ParallaxEffect); if (false == hKeyConfigSettings.ParallaxEffect) { GetComponent <VignetteAndChromaticAberration>().enabled = false; GetComponent <MotionBlur>().enabled = false; } if (Player == null) { Player = GameObject.Find("Player"); } }
// Use this for initialization void Start() { // 子オブジェクトの取得 _child = transform.FindChild("humer").gameObject; jsr = new hJoyStickReceiver(); kcs = new hKeyConfigSettings(); kcs.Init(); }
// Use this for initialization void Start() { // 子オブジェクトの取得 _child = transform.FindChild("humer").gameObject; if (pChildren == null) { pChildren = GameObject.Find("player"); } pChildColor = pChildren.GetComponent <SpriteRenderer>().color; jsr = new hJoyStickReceiver(); kcs = new hKeyConfigSettings(); kcs.Init(); if (yhp == null) { yhp = new yHpgage(); } //yhp.Acquisition(); }