大约有 1,253 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0047 秒)
...dler = Laya.Handler; import WebGL = Laya.WebGL; import Event = Laya.Event; export class InputDevice_GluttonousSnake { private seg:Segment; private segments:Array = []; private foods:Array = []; private initialSegmentsAmount:number = 5; private vx:number = 0 private vy:number = 0; private targetPosit...
来源: Laya2.0_示例 发布时间: 20250221
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 问题状态 最新活动: 2018-05-15 20:05 浏览: 1433 关注: 2 人 吉日-jerry • 2018-05-16 11:27 嗯,谢谢,官方例子里没有说明,应该是我IDE版本最新的问题导致 吉日-jerry • 201...
来源: Laya_社区 发布时间: 20180515
...gameStart); 加载场景后报上面图片的错误 GameStart 类如下: export default class GameStart extends ui.GameStartUI { constructor() { super(); this.btnStart.on(Laya.Event.CLICK, this, this.startGame); } startGame(): void { ...
来源: Laya_社区 发布时间: 20190510
...了 两个物体移动时候重合但是无法触发onTriggerEnter, export default class BulletControlTrigger extends Laya.Script3D { constructor(){ super(); } /** * 开始触发时执行 * 此方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnt...
来源: Laya_社区 发布时间: 20191215
...rt Ease = Laya.Ease; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_CustomEvent { public static ROTATE: string = "rotate"; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.s...
来源: Laya_示例 发布时间: 20250221
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/media/SoundChannel" SoundChannel Class SoundChannel SoundChannel 用来控制程序中的声音。每个声音均分配给一个声道,而且应用程序可以具有混合在一起的多个声道...
来源: Laya3.0_api 发布时间: 20231115
...无法判断结果? const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { testData = new Laya.Vector3(1, 1, 1); @property(Laya.Camera) camera: Laya.Camera; onStart() { //@ts-ignore window.camera = this.camera; console.log("Game s...
来源: Laya_社区 发布时间: 20241029
...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Pivot { private sp1: Sprite; private sp2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDD...
来源: Laya_示例 发布时间: 20250221
...台有又看见video这个元素有 let SoundManager = Laya.SoundManager; export default class LoginGame extends Laya.Scene { constructor() { super(); LoginGame.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("LoginGame.scene"); } onEnable() { SoundManager.playMusic("aud...
来源: Laya_社区 发布时间: 20181124
...rowser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Skeleton_SpineVine { private mAniPath:string; private mStartX:number = 200; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmatur...
来源: Laya_示例 发布时间: 20250221