private void TradingComplete() { currentGamePlayState = GamePlayState.TradeComplete; foreach(var good in foodTrayBeh.goodsOnTray_List) { Destroy(good.gameObject); } foodTrayBeh.goodsOnTray_List.Clear(); StartCoroutine(this.PackagingGoods()); if(MainMenu._HasNewGameEvent) { MainMenu._HasNewGameEvent = false; Town.IntroduceGameUI_Event += Town.Handle_IntroduceGameUI_Event; Destroy(shopTutor.greeting_textmesh); shopTutor.goaway_button_obj.active = true; shopTutor = null; darkShadowPlane.transform.position += Vector3.forward * 2f; audioDescribe.PlayOnecSound(description_clips[7]); } else { int r = UE.Random.Range(0, thanksCustomer_clips.Length); audioDescribe.PlayOnecSound(thanksCustomer_clips[r]); } }
private void OpenShop() { iTween.MoveTo(slidingDoorLeft, iTween.Hash("position", new Vector3(-225f, 0f, 1), "islocal", true, "time", 1f, "easetype", iTween.EaseType.easeInSine)); iTween.MoveTo(slidingDoorRight, iTween.Hash("position", new Vector3(225f, 0f, 1), "islocal", true, "time", 1f, "easetype", iTween.EaseType.easeInSine)); audioEffect.PlayOnecSound(base.soundEffect_clips[0]); nullCustomer_event += new EventHandler(Handle_nullCustomer_event); OnNullCustomer_event(EventArgs.Empty); this.NoticeUserWhenHaveNewItem(); if(MainMenu._HasNewGameEvent == false) { Destroy(shopTutor.greeting_textmesh); shopTutor = null; darkShadowPlane.transform.localPosition = new Vector3(0,0,95); } }