- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 C#图片笔记(全)
目录1界面2、进制 运算3、常量4、变量5、IF分支,赋值号,运算符,类型转换6、if,switch的应用7、随机数、体重练习题、逻辑分析图8、循环、字符、图形打印、goto跳转9、数组10、方法、参数11、ref、out、传递12、面向对象13、继承14、多态15、排序数组、接口16、字符串的常用方法17、工具类、数集18、文件操作19、反射、进程及线程
2021-01-22 11:58:12 212
原创 unity 控制上下左右移动代码,记录初次点击位置
public class InputHelper { public TouchOperation OnTouchDown; public TouchOperation OnTouchMove; public TouchOperation OnTouchUp; public TouchOperation OnClick; public long TouchDownTime; public long TouchUpTime; [HideInInspector] public .
2021-07-13 17:40:09 758 1
原创 基于ugui的eventsystem判断是否有ui遮挡
/// <summary> /// 基于ugui的eventsystem判断是否有ui遮挡 /// </summary> /// <returns></returns> private bool CheckGuiRaycastObjects() { PointerEventData eventData = new PointerEventData(EventSystem.current); ...
2021-07-13 15:14:38 392
原创 Unity EasyMassageSystem
EventManagerusing System.Collections;using System.Collections.Generic;using UnityEngine;using System;namespace EasyMassageSystem{ public class EventManager { public static EventManager Instance; private static Dictionary<
2021-07-07 19:46:39 139 1
原创 Html试玩发布模板
<!DOCTYPE html><html> <head> <meta charset='utf-8' /> <title>$game_name$</title> <meta name='viewport' content='width=device-width,initial-scale=1.0,min...
2020-03-27 16:42:59 384
原创 LayaBox--键值类
/*** 键值对*/module game.util { export class Dictionary<T>{ private _strongType: T; //要求存储对象为强类型 private _container: Object; public get container(): Object { return this._container;...
2019-09-02 15:24:43 516
原创 LayaBox--事件分发器
/*** 事件分发器*/namespace game.common { export class EventManager extends Laya.EventDispatcher { private static _ins: EventManager; public static get ins(): EventManager { if (!EventManager._...
2019-08-28 11:29:32 478
原创 LayaBox--功能记录
1.添加监听事件 public open(): void { Laya.timer.frameLoop(1, this, this.update); this.ui.stage.on(Laya.Event.CLICK, this, this.stageClick); this.ui.stage.on(Laya.Event.MOUSE_DOWN,...
2019-08-28 09:54:42 479
原创 LayaBox--MathUtil
namespace game.util{ /* * name; */ export class MathUtil{ constructor(){ } /** * 随机产生一个范围的值 * @param min 最小值 * @param max 最大值 ...
2019-08-28 09:46:06 506
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人