public bool Initialization() { bool bNoError = true; if (mainScene == null) { mainScene = GameObject.Find("Main Game").GetComponent <MainScene>(); } if (mainScene == null) { bNoError &= false; } mainScene.HideAllUI(); mainScene.ShowUI(0); uiInsertCoin = mainScene.uiGrp[0].transform.FindChild("Insert Coin Image").FindChild("Insert Coin Text").GetComponent <TransText>(); uiInsertCoinOutline = uiInsertCoin.gameObject.GetComponent <Outline>(); uiRanking = mainScene.uiGrp[0].transform.FindChild("Ranking Image").GetComponent <TransImage>(); uiRanking.SetPosition(new Vector3(0.00f, 32.00f, 0.00f), 1000.0f); uiRanking.GetComponent <Ranking>().RenewRankingScore(); uiMainTitle = mainScene.uiGrp[0].transform.FindChild("Main Title Image").GetComponent <TransImage>(); uiMainTitle.ChangeAlpha(1.00f, 1.00f); fDemoAnimPlayTime = Random.Range(GameDatas.FLOAT_DEMO_ANIMPLAY_DELAY_MIN, GameDatas.FLOAT_DEMO_ANIMPLAY_DELAY_MAX); bNextState = false; return(bNoError); }
public bool Initialization() { bool bNoError = true; if (mainScene == null) { mainScene = GameObject.Find("Main Game").GetComponent <MainScene>(); } if (mainScene == null) { bNoError &= false; } mainScene.HideAllUI(); mainScene.ShowUI(1); iCurrentDummyIndex = 0; HideDummyAll(); ShowDummy(iCurrentDummyIndex); Transform uiTrans = mainScene.uiGrp[1].transform; mainTitle = uiTrans.FindChild("Main Title Image").GetComponent <TransImage>(); leftHand = uiTrans.FindChild("Dummy Select Image").FindChild("Left Image").GetComponent <TransImage>(); rightHand = uiTrans.FindChild("Dummy Select Image").FindChild("Right Image").GetComponent <TransImage>(); selectHelp = uiTrans.FindChild("Select Help Image").GetComponent <TransImage>(); mainTitle.SetPosition(new Vector3(0.00f, -128.0f, 0.00f), 10000.0f); leftHand.SetPosition(new Vector3(16.00f, 0.00f, 0.00f), 10000.0f); rightHand.SetPosition(new Vector3(-16.00f, 0.00f, 0.00f), 10000.0f); selectHelp.SetPosition(new Vector3(500.0f, 32.0f, 0.00f), 10000.0f); mainTitle.ChangeAlpha(0.50f, 1.00f); leftHand.ChangeAlpha(0.50f, 1.00f); rightHand.ChangeAlpha(0.50f, 1.00f); selectHelp.ChangeAlpha(0.50f, 1.00f); selectHelp.SetPosition(new Vector3(-32.00f, 32.00f, 0.00f), 3000.0f); return(bNoError); }
public override void FinishState() { if (mainScene.GetCoin() > 0 && inputMgr.CheckInputs()) { bNextState = true; uiMainTitle.ChangeAlpha(0.50f, 0.00f); uiInsertCoin.ChangeAlpha(0.50f, 0.00f); uiInsertCoinOutline.effectColor = new Color(uiInsertCoinOutline.effectColor.r, uiInsertCoinOutline.effectColor.g, uiInsertCoinOutline.effectColor.b, 0.00f); uiRanking.SetPosition(new Vector3(0.00f, -500.0f, 0.00f), 1000.0f); mainScene.SubCoin(); Invoke("ChangeNextState", 0.50f); } }
public override void FinishState() { bNextState = true; mainTitle.SetPosition(new Vector3(0.00f, 1000.0f, 0.00f), 1000.0f); leftHand.SetPosition(new Vector3(-200.00f, 0.00f, 0.00f), 1000.0f); rightHand.SetPosition(new Vector3(200.00f, 0.00f, 0.00f), 1000.0f); selectHelp.SetPosition(new Vector3(500.0f, 32.0f, 0.00f), 1000.0f); mainTitle.ChangeAlpha(0.50f, 0.00f); leftHand.ChangeAlpha(0.50f, 0.00f); rightHand.ChangeAlpha(0.50f, 0.00f); selectHelp.ChangeAlpha(0.50f, 0.00f); Invoke("ChangeNextState", 0.50f); }