// Use this for initialization void Start() { myCard = new AmCard(); myCard.mDirectObj.mWidth = new int[4] { 250, 250, 250, 250 }; myCard.mDirectObj.mPosition = new int[4] { 0, 250, 500, 750 }; myCard.SetDirectionArea(); Ag.mgIsKick = true; mCursor1 = GameObject.Find("Ui_camera/Camera/Ui_ingame/Panel_progressbar_kickbar/nod0").gameObject; mCursor2 = GameObject.Find("Ui_camera/Camera/Ui_ingame/Panel_progressbar_kickbar/nod1").gameObject; mCursor3 = GameObject.Find("Ui_camera/Camera/Ui_ingame/Panel_progressbar_kickbar/nod2").gameObject; mCursor4 = GameObject.Find("Ui_camera/Camera/Ui_ingame/Panel_progressbar_kickbar/nod3").gameObject; DrawGuideLine(); //GetUniqueKey(20); string cocococo = "zozozozoozzoz" + '"' + "ozozo:" + ":" + "zozozozo"; //'"'+ cocococo.Replace(WWW.UnEscapeURL("%22"),"\"")+'"'; Debug.Log(cocococo.Replace("\"", "\\\"").ToString()); }
void DrawKickerbar() { mCard.WAS.ResetWidthAndSkill(); DirCard = new AmCard(); DirCard.mDirectObj.mWidth = new int[] { mCard.WAS.direction [0], mCard.WAS.direction [2], mCard.WAS.direction [4], mCard.WAS.direction [6] }; DirCard.mDirectObj.mPosition = new int[] { mCard.WAS.direction [1], mCard.WAS.direction [3], mCard.WAS.direction [5], mCard.WAS.direction [7] }; DirCard.SetDirectionArea(); int num = 0; num = DirCard.arrArea.Count; GameObject mGame; for (int i = 0; i < num; i++) { int[] curVal = (int[])DirCard.arrArea [i]; // 3, 15, 50 < posi, sta, end > int color = curVal [0]; int sta = curVal [1], end = curVal [2]; float staX = (float)(sta / 1000.0f); float width = (float)((end - sta) / 1000.0f); float staEnd = staX + width; mGame = (GameObject)Instantiate(Resources.Load("prefab_General/KickerBar")); mGame.transform.parent = dicMenuList ["Panel_directionbar_Kicker"].transform; mGame.transform.localPosition = new Vector3((staX * 508) - 254, 0, 0); mGame.GetComponent <UISprite> ().spriteName = "kickbar" + color; if (color == 0 && width * 510 < 0) { width = 0; } mGame.transform.localScale = new Vector3(width * 510, 24, 1); BarObj.Add(mGame); } }
void CommonStateMethods() { mStateArr.GetState("Begin").mEntryAction += () => { KakaoNativeExtension.Instance.loadGameFriends(onLoadGameFriendsComplete, onLoadGameFriendsError); arrMyScore = new List <bool> (); arrEnScore = new List <bool> (); mAllPoint = Ag.mgPrevScore = Ag.mySelf.myRank.mScore; SoundManager.Instance.Play_Effect_Sound("05_Crowd_etc"); CerCam.enabled = false; mIntroCam.enabled = true; Ag.NodeObj.ReMatchSent.InitSet(false); Ag.mRound = 0; if (AgStt.mgGameTutorial) { //ljk 11 11 TutorialBegin(); TutorialSetTextureCharacter(); } else { if (Ag.mgIsKick) { VoiceSoundManager.Instance.Play_Effect_Sound("voice/Pre-matchIntro(PlayerFirst)01"); myCard = Ag.NodeObj.MyUser.GetCardOrderOf(1); SetPolyGon(myCard); mPlayerKicker = (GameObject)Instantiate(mPoly); EnemCard = Ag.NodeObj.EnemyUser.GetCardOrderOf(0); // Debug.Log(" EnemCard.WAS.ID" +EnemCard.WAS.ID); SetPolyGon(EnemCard); mPlayerKeeper = (GameObject)Instantiate(mPoly); } else { VoiceSoundManager.Instance.Play_Effect_Sound("voice/Pre-matchIntro(OpponentFirst)1"); myCard = Ag.NodeObj.MyUser.GetCardOrderOf(0); SetPolyGon(myCard); mPlayerKeeper = (GameObject)Instantiate(mPoly); EnemCard = Ag.NodeObj.EnemyUser.GetCardOrderOf(1); SetPolyGon(EnemCard); mPlayerKicker = (GameObject)Instantiate(mPoly); KeeperRemoveTrailer(); } SetTextureCharacter(); } IntroAni(); }; mStateArr.GetState("CountDn").mEntryAction += () => { Ag.mgDirection = Ag.mgSkill = 0; Ag.NodeObj.Direction = Ag.NodeObj.Skill = 0; }; mStateArr.GetState("PreGame").mEntryAction += () => { //Ag.mySelf.ApplyDeckItemBeforeGame (); PreGameVoicePlay(); //voice Play CeremonyResultLabelEffInit(); if (Ag.GameStt.SomeoneOutPopupEnemyLeft) { dicGameSceneMenuList ["popup"].SetActive(true); dicGameSceneMenuList ["alert_someoneout"].SetActive(true); Ag.mgDidWin = true; Ag.NodeObj.GameFinish = true; // I won .. if (mStateArr.GetCurStateName() != "ShowEndingResult") { mStateArr.SetStateWithNameOf("EndingCeremony"); } } mFirstRewardGold = Ag.mySelf.mGold; Ag.mySelf.mRewardGold = 0; ItemEffInit(); //ItemEffInit dicGameSceneMenuList ["Panel_top"].SetActive(true); mIsKeeperSkl = 5; mDirLightFlag = false; mskillflag = true; mEffballflag = true; //mItemSlot.SetActive (true); mEventDirspeed = 0.8f; mEventSkillSpeed = 0.8f; SoundManager.Instance.Play_Effect_Sound("02_Crowd_Set"); mStage.InitCursorMove(0.8f, 800f); mCerCamAxis.SetActive(false); mDidDragStarted = false; mKeeperSetDir = false; mIntroCam.enabled = false; mStage.mIsTouched = true; CameraSet(); DestroyObject(mKickBall); mKickBall = (GameObject)Instantiate(Resources.Load("prefab_Polygon/Ball/Ball")); if (AgStt.mgGameTutorial) { TutoriPreGame(); // 여 기 에 myCard = 이 들 어 가 야 함... //mCurPlayer = Ag.mySelf.mCurPlayer; //GetKicker( 1 ); //mCurEnem = Ag.myEnem.mCurPlayer; //.GetGoulKeeper(); } else { if (Ag.mgIsKick) // ljk 11 11 { myCard = Ag.NodeObj.MyUser.GetCardOrderOf((PlayerOrderNum % 5) + 1); myCard.SetDirectionPosition(); myCard.SetDirectionArea(); //Ag.LogString (" myCard count " + myCard.arrArea.Count); PlayerOrderNum++; } else { EnemCard = Ag.NodeObj.EnemyUser.GetCardOrderOf((EnemyOrderNum % 5) + 1); for (int i = 0; i < EnemCard.WAS.direction.Length; i++) { //Ag.LogString (" EnemCard.WAS.direction :: i " + i + " >>>> " + EnemCard.WAS.direction [i].ToString ()); } EnemCard.SetDirectionPosition(); EnemCard.SetDirectionArea(); EnemyOrderNum++; } } if (AgStt.mgGameTutorial) { TutorialSetTextureCharacter(); } else { if (Ag.mgIsKick) { KickerScenePlay(false); SetKickerDir(true); StartCoroutine(ShowKickerFX2(1.8f)); DestroyObject(mPlayerKicker); DestroyObject(mPlayerKeeper); SetPolyGon(myCard); mPlayerKicker = (GameObject)Instantiate(mPoly); EnemCard = Ag.NodeObj.EnemyUser.GetCardOrderOf(0); SetPolyGon(EnemCard); //Debug.Log ("EnemCard :: "+ EnemCard.WAS.look); mPlayerKeeper = (GameObject)Instantiate(mPoly); if (myCard.arrCostumeInCard.Count > 0) { for (int i = 0; i < myCard.arrCostumeInCard.Count; i++) { //// Debug.Log ("CostumeNAme" + myCard.arrCostumeInCard [i].WAS.itemTypeId); PlayerCostume.instance.SetCostumeToPlayer(true, mPlayerKicker, (myCard.arrCostumeInCard [i].WAS.itemTypeId)); } } else { PlayerCostume.instance.SetCostumeToPlayer(true, mPlayerKicker, "KickerShoes01"); } if (EnemCard.arrCostumeInCard.Count > 0) { for (int i = 0; i < EnemCard.arrCostumeInCard.Count; i++) { // Debug.Log ("CostumeNAme" + EnemCard.arrCostumeInCard [i].WAS.itemTypeId); PlayerCostume.instance.SetCostumeToPlayer(false, mPlayerKeeper, (EnemCard.arrCostumeInCard [i].WAS.itemTypeId)); } } else { PlayerCostume.instance.SetCostumeToPlayer(false, mPlayerKeeper, "KeeperGloves01"); } if (!AgStt.mgGameTutorial) { dicGameSceneMenuList ["Keeperinfo"].SetActive(true); EnemyKeeperInfo(); } mBall = mPlayerKicker.transform.FindChild("deleveryBall").gameObject; //LJk 2013 07 25 mBall.transform.renderer.enabled = false; PreAni(); DrawGuideLineNew(); StartCoroutine(CaptureImage()); } else { dicGuideObjectPos = new Dictionary <int, float> (); dicGuideObjectWidth = new Dictionary <int, float> (); DrawGuideLineNew(); if (!AgStt.mgGameTutorial) { StartCoroutine(SmallinfoFlag(1f)); } if (AgStt.mgGameTutorial) { StartCoroutine(TutorinfoFlag(1f)); } //Debug.Log ("backGreenItemPosition Pregame " + dicGameSceneMenuList["Anim_back_green"].gameObject.transform.localPosition.y); //mPlayerInfoDirflag = true; mIsKeeperSkl = 0; mPlayerInfoX = 0.224f; mPlayerInfoY = 0.7f; mPlayerInfowid = 0f; MplayerInfoHeight = 0.2078125f; //KickinfoPlag = false; StartCoroutine(KeeperinfoAni(2.5f)); if (!AgStt.mgGameTutorial) { StartCoroutine(PlayerinfobarFlag(0.5f)); } DragNum = 0; KickerScenePlay(false); //Ag.LogString ("Number >>> " + Ag.mySelf.arrAllPlayer.Count); //GuideKeeperViewAni (); DestroyObject(mPlayerKicker); DestroyObject(mPlayerKeeper); SetPolyGon(EnemCard); mPlayerKicker = (GameObject)Instantiate(mPoly); myCard = Ag.NodeObj.MyUser.GetCardOrderOf(0); SetPolyGon(myCard); mPlayerKeeper = (GameObject)Instantiate(mPoly); //Debug.Log ("backGreenItemPosition Pregame " + dicGameSceneMenuList["Anim_back_green"].gameObject.transform.localPosition.y); if (EnemCard.arrCostumeInCard.Count > 0) { for (int i = 0; i < EnemCard.arrCostumeInCard.Count; i++) { // Debug.Log ("CostumeNAme" + EnemCard.arrCostumeInCard [i].WAS.itemTypeId); PlayerCostume.instance.SetCostumeToPlayer(true, mPlayerKicker, (EnemCard.arrCostumeInCard [i].WAS.itemTypeId)); } } else { PlayerCostume.instance.SetCostumeToPlayer(true, mPlayerKicker, "KickerShoes01"); } if (myCard.arrCostumeInCard.Count > 0) { for (int i = 0; i < myCard.arrCostumeInCard.Count; i++) { // Debug.Log ("CostumeNAme" + myCard.arrCostumeInCard [i].WAS.itemTypeId); PlayerCostume.instance.SetCostumeToPlayer(false, mPlayerKeeper, (myCard.arrCostumeInCard [i].WAS.itemTypeId)); } } else { PlayerCostume.instance.SetCostumeToPlayer(false, mPlayerKeeper, "KeeperGloves01"); } if (!AgStt.mgGameTutorial) { dicGameSceneMenuList ["Kickerinfo"].SetActive(true); } EnemyKickerinfo(); mBall = mPlayerKicker.transform.FindChild("deleveryBall").gameObject.gameObject; //LJK 07:25 mBall.transform.renderer.enabled = false; dicGameSceneMenuList ["Panel_keeperarrow_Main"].SetActive(true); DragPositionF(true); PreAni(); StartCoroutine(CaptureImage()); } SetTextureCharacter(); } KeeperRemoveTrailer(); }; mStateArr.GetState("Ceremony").mEntryAction += () => { ShowWinORLose_Label_Eff(); }; }