Commit 1ebcf8e4 authored by Vũ Gia Vương's avatar Vũ Gia Vương

fix tutorialTap

parent 386eb26f
......@@ -19,6 +19,7 @@ export const PLAY_ANIM_NUT4 = 'PLAY_ANIM_NUT4';
export const ROTATE_GUILD = 'ROTATE_GUILD';
export const BEAT_GUILD = 'BEAT_GUILD';
export const STOP_GUILD_ROTATE = 'STOP_GUILD_ROTATE';
export const START_GUILD_TAP = 'START_GUILD_TAP';
export const STOP_GUILD_TAP = 'STOP_GUILD_TAP';
export const CHECK_TOUCH = 'CHECK_TOUCH';
......
import { BEAT_GUILD, eventTarget, STOP_GUILD_TAP } from "../Events";
import { BEAT_GUILD, eventTarget, START_GUILD_TAP, STOP_GUILD_TAP } from "../Events";
const { ccclass, property } = cc._decorator;
......@@ -9,8 +9,9 @@ export default class TapTutorialController extends cc.Component {
protected onLoad(): void {
[this._hand] = this.node.children;
eventTarget.on(STOP_GUILD_TAP, this.stopGuild, this);
eventTarget.on(START_GUILD_TAP, this.tutorialTap, this);
this.tutorialTap();
// this.tutorialTap();
// this.tutorialTapForFragements();
}
......
import { eventTarget, SHOW_ACTION_SCREEN, SHOW_START_SCREEN } from "../Events";
import { eventTarget, SHOW_ACTION_SCREEN, SHOW_START_SCREEN, START_GUILD_TAP } from "../Events";
import { Global } from "../Global";
const { ccclass, property } = cc._decorator;
......@@ -18,6 +18,7 @@ export default class StartScreen extends cc.Component {
private onSelectBtnClick() {
Global.tool = 3;
eventTarget.emit(SHOW_ACTION_SCREEN);
eventTarget.emit(START_GUILD_TAP);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment