//TODO: ERROR로 수정필요함 //public void SlotOff() //{ //원래의 슬롯색으로 바꾸어 놓는다. // formation.FormationCardsArc(eGameCardSize.BASE,eBelong.PLAYER,eCardType.SLOT); //} public void EFFECT(eEFFECT_NAME SPAWN) { var wor = mainCamera.ScreenToWorldPoint(Vector3.zero); //TODO:이펙트 발생시키는 애니 실행시킨다. GameObject ef = AppUIEffect.instance.InstanceVFX(SPAWN); //ERROR : 픽업되는 카드가 부모가 됨..놓는위치가 부모가 되어야 한다.수정 ef.transform.SetParent(transform); ef.transform.localPosition = new Vector3(wor.x,wor.y,wor.z + 10); }
//네입별로 찾아서 인스턴스를 생성하게한다. //복제한다. public GameObject InstanceVFX(eEFFECT_NAME vfx) { GameObject vfxIntance = null; switch (vfx) { case eEFFECT_NAME.GOLD: vfxIntance = CreatetEffObj("NovaGOLD"); break; case eEFFECT_NAME.JEW: vfxIntance = CreatetEffObj("NovaGOLD"); break; case eEFFECT_NAME.EXPERIENCE: vfxIntance = CreatetEffObj("NovaGOLD"); break; case eEFFECT_NAME.Destroy_Card: vfxIntance = CreatetEffObj("ElectricDeathBlueP"); break; case eEFFECT_NAME.Destroy_SHIP: vfxIntance = CreatetEffObj("ElectricDeathShip"); break; case eEFFECT_NAME.BULLET: vfxIntance = CreatetEffObj("BulletSmallFire"); break; case eEFFECT_NAME.GLOW: vfxIntance = CreatetEffObj("Glow"); break; case eEFFECT_NAME.SPAWN: vfxIntance = CreatetEffObj("MagicNovaBlueP"); break; case eEFFECT_NAME.FIRE: vfxIntance = CreatetEffObj("EnergyNovaMuzzleBlue"); break; } return(vfxIntance); }
//네입별로 발사할 부분의 이펙트 public GameObject InstanceFIRE(eEFFECT_NAME vfx) { GameObject vfxIntance = null; switch (vfx) { case eEFFECT_NAME.GOLD: vfxIntance = CreatetEffObj("CartoonyFightAction2"); break; case eEFFECT_NAME.JEW: vfxIntance = CreatetEffObj("CartoonyFightAction2"); break; case eEFFECT_NAME.EXPERIENCE: vfxIntance = CreatetEffObj("CartoonyFightAction2"); break; case eEFFECT_NAME.Destroy_Card: vfxIntance = CreatetEffObj("ElectricDeathBlueP"); break; case eEFFECT_NAME.Destroy_SHIP: vfxIntance = CreatetEffObj("ElectricDeathShip"); break; case eEFFECT_NAME.BULLET: vfxIntance = CreatetEffObj("CartoonyFightAction2"); break; case eEFFECT_NAME.SPAWN: vfxIntance = CreatetEffObj("MagicNovaBlueP"); break; case eEFFECT_NAME.FIRE: vfxIntance = CreatetEffObj("EnergyNovaMuzzleBlue"); break; } return(vfxIntance); }