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(); }; }
/// <summary> /// 스카우터 정보창 보여주기 /// </summary> void ScouterUI() { dicGameSceneMenuList ["Kickerinfo_scouter_bundle"].SetActive(true); dicGameSceneMenuList ["Kickerinfo_scouter_bundle"].transform.FindChild("Label_blue").gameObject.GetComponent <UILabel> ().text = EnemCard.ScouterGameNum(1).ToString(); dicGameSceneMenuList ["Kickerinfo_scouter_bundle"].transform.FindChild("Label_red").gameObject.GetComponent <UILabel> ().text = EnemCard.ScouterGameNum(2).ToString(); dicGameSceneMenuList ["Kickerinfo_scouter_bundle"].transform.FindChild("Label_marine").gameObject.GetComponent <UILabel> ().text = EnemCard.ScouterGameNum(3).ToString(); dicGameSceneMenuList ["Kickerinfo_scouter_bundle"].transform.FindChild("Label_yellow").gameObject.GetComponent <UILabel> ().text = EnemCard.ScouterGameNum(4).ToString(); dicGameSceneMenuList ["Kickerinfo_scouter_bundle"].transform.FindChild("Label_center").gameObject.GetComponent <UILabel> ().text = EnemCard.ScouterGameNum(5).ToString(); dicGameSceneMenuList ["Kickerinfo_progress_scouter"].transform.FindChild("Label_cash").gameObject.SetActive(false); Scouter_FxInit(); }