// Start is called before the first frame update void Start() { SceneFlag = false; GameFrag = false; GameOverFlag = false; StageNameInstance = instance.GetComponent <SceneName>(); PauseManager = GameObject.Find("PauseManager").GetComponent <PauseManager>(); WhiteFadeTrg = false; Result = GameObject.Find("ResultManager").GetComponent <ResultComponent>(); BGMManager.Instance.Play(TitleAndSelectBGM); //フェード初期処理 if (Fadeobj_In != null && Fadeobj_Out != null) { //Fadeobj.GetComponent<Canvas>().enabled = false; Fadeobj_Out.GetComponent <Canvas>().enabled = false; FadeAni_In = Fadeobj_In.GetComponent <FadeAnim>(); //FadeAni_Out = Fadeobj_Out.GetComponent<FadeAnim>(); FadeAni_Out = Fadeobj_Out.GetComponent <BubbleFadeOpe>(); } else { Debug.Log("Error"); } }
// Start is called before the first frame update void Start() { bubble.Add(GameObject.FindGameObjectWithTag("1")); bubble.Add(GameObject.FindGameObjectWithTag("2")); bubble.Add(GameObject.FindGameObjectWithTag("3")); fadeOpe = this.GetComponent <BubbleFadeOpe>(); }
// Start is called before the first frame update void Start() { fadeOpe = this.GetComponentInParent <BubbleFadeOpe>(); parent = this.transform.parent; firstPos = this.transform.localPosition; if (fadeOpe.isFadeOut) { this.transform.localPosition -= new Vector3(0, 1080.0f * 1.5f); } }
// Start is called before the first frame update void Start() { IsInplay = false; IsOutplay = false; deltaTime = 0.0f; if (gameObject.GetComponent <AudioSource>() != null) { audiosource = gameObject.GetComponent <AudioSource>(); } if (gameObject.GetComponent <BubbleFadeOpe>() != null) { bubblefadeope = gameObject.GetComponent <BubbleFadeOpe>(); } audiosource.clip = FadeSE; audiosource.loop = true; }