//여기 메소드를 실행하면 에스자 이펙트가 나오기 시작한다// //여기는 정의만 하고 바로 아래 Update에서 실제 움직이게 한다// public void Activate(Vector3 targetEndPoint, NextFuncV nextF) { nextFF = nextF; endPos = targetEndPoint; transform.FindChild("BirthEffect").gameObject.SetActive(true); isBirthFx = true; }
IEnumerator OnEffectMove(Vector3 Pos) { nextF = new NextFuncV(AfterStartFx); wingBoxEffect01ParticleEmitter.emit = true; effectObject.GetComponent <WingBoxEffectScript>().Activate(Pos, nextF); yield return(new WaitForSeconds(2f)); wingBoxEffect01ParticleEmitter.emit = false; GameObject.Find("GameManager").GetComponent <SoundUiControlScript>().WingboxAppear(); //윙박스 나타날때 사운드. }