- 博客(2)
- 收藏
- 关注
原创 Unity 单例模式 单例模式模板
单例模式using System.Collections;using System.Collections.Generic;using UnityEngine;public class MainPlayer : MonoBehaviour{/// <summary>/// 单例模式,测试是否需要挂载在物体上/// </summary>private static MainPlayer _instance;public static MainPlayer Inst
2022-05-07 11:00:44 924
转载 unity UI呼吸特效
直接上代码,把脚本放到需要呼吸的UI上即可```handlebarsusing UnityEngine;using DG.Tweening;public class ButtonBreath : MonoBehaviour{// Start is called before the first frame updatevoid Start(){//在自身的大小上加上0.2倍Vector3 effectScale = transform.localScale - new Vector3(
2021-12-20 23:06:23 1309 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人