I have 2 class one is “checkConnection” and other is “connectionLost”.
check connection class:-
export default class checkConnection
{
i need to call the scene class ?
}
Scene class:-
import { Scene } from ‘phaser’;
class connectionLost extends Scene {
constructor() {
super({ key: connectionLost });
}
/**
- create
*/
create()
{
//Show Popup Contains connection Lost Message.
}
}
export default connectionLost;
Lots of them tells can’t call normal class to scene class. please Go to trigger custom Window event. Anyother option there to call. Please share your Knowledge.