protected override void GetStart() { base.GetStart(); roleDate = GetComponent <PlayerRoleDate>(); //print(" xueliang------ "+roleDate.live); //roleDate.live = 2000; Globals.IsInJijia = true; if (IsInOnGroundSrop) { InOnGroundStop(); GlobalTools.FindObjByName(GlobalTag.PLAYERUI).GetComponent <UI_Nengliangtiao>().HideSelf(); if (IsJijiaGKOver) { //隐藏 推进器 GetComponent <Jijia_Zhutuiqis>().HideZhutuiqi(); } } else { ShowJijiaUI(); GetPlayerRigidbody2D().gravityScale = 0; IsInAirFly = true; IsQifeiOver = true; Globals.IsInJijia = false; TX_penhuo1.Play(); TX_penhuo2.Play(); //2个喷火长短不一 保证循环不断 A_Penhuo.Play(); A_Penhuo2.Play(); } //print("jiajia "+ this.transform.localScale.x); ACReset(); //if (this.transform.localScale.x == -1) GetComponent<GameBody>().TurnRight(); }
void TXDianhuo() { TX_penhuo1.Play(); TX_penhuo2.Play(); TX_qidongYanmu1.Play(); TX_qidongYanmu2.Play(); //2个喷火长短不一 保证循环不断 A_Penhuo.Play(); A_Penhuo2.Play(); }