|
@@ -149,7 +149,17 @@ export class FightingMediator extends GUIMediator {
|
|
|
@property({
|
|
|
type:Node
|
|
|
})
|
|
|
- teachingNode:Node=null;
|
|
|
+ BowLeft:Node=null;
|
|
|
+
|
|
|
+ @property({
|
|
|
+ type:Node
|
|
|
+ })
|
|
|
+ BowMid:Node=null;
|
|
|
+
|
|
|
+ @property({
|
|
|
+ type:Node
|
|
|
+ })
|
|
|
+ BowRight:Node=null;
|
|
|
|
|
|
@property({
|
|
|
type:AnimationComponent
|
|
@@ -181,12 +191,10 @@ export class FightingMediator extends GUIMediator {
|
|
|
|
|
|
OnShow():void{
|
|
|
this.onShowed=false;
|
|
|
+ this.BowLeft.active=false;
|
|
|
+ this.BowMid.active=false;
|
|
|
+ this.BowRight.active=false;
|
|
|
this.LoadAssets();
|
|
|
- if(GameModel.single.isNewPlayer){
|
|
|
- this.teachingNode.active=true;
|
|
|
- }else{
|
|
|
- this.teachingNode.active=false;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
private __OnShow():void{
|
|
@@ -433,13 +441,14 @@ export class FightingMediator extends GUIMediator {
|
|
|
this.reloadProgrssBar.node.active=true;
|
|
|
this.reloadProgrssBar.progress=GameController.single.weapon.reloadProgress;
|
|
|
}
|
|
|
+ //射击提示
|
|
|
+ this.BowLeft.active=GameController.single.FireTip(1);
|
|
|
+ this.BowMid.active=GameController.single.FireTip(2);
|
|
|
+ this.BowRight.active=GameController.single.FireTip(3);
|
|
|
}
|
|
|
|
|
|
private currentFireButtonNode:Node;
|
|
|
FireButtonTouchStart(e:EventTouch):void{
|
|
|
- if(this.teachingNode.active){
|
|
|
- this.teachingNode.active=false;
|
|
|
- }
|
|
|
this.currentFireButtonNode=e.target as Node;
|
|
|
if(e.target==this.leftFireButton.node){
|
|
|
GameController.single.TryFire(1);
|