当前位置:网站首页>NGUI,地图放大缩小
NGUI,地图放大缩小
2022-06-11 10:20:00 【ying1228475251】
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/*
*文件描述:
*创始人:
*创建时间:
*修改时间:
*版本:1.0
*/
public class Minimap2 : MonoBehaviour {
Camera minimapCamera;
UIButton btn, btn2;
void Start () {
minimapCamera = GameObject.Find("MinimapCamera").transform.GetComponent<Camera>();
btn = transform.GetChild(1).GetComponent<UIButton>();
btn2 = transform.GetChild(2).GetComponent<UIButton>();
btn.onClick.Add(new EventDelegate(this,"B"));
btn2.onClick.Add(new EventDelegate(this, "B2"));
}
void B() {
if (minimapCamera.fieldOfView >=23)
{
minimapCamera.fieldOfView -= 5;
}
}
void B2()
{
if (minimapCamera.fieldOfView <=43)
{
minimapCamera.fieldOfView += 5;
}
}
}
边栏推荐
- Tree topology networking structure of ZigBee module communication protocol
- 接口调优的大致思路
- RSA signature issues
- Q1's revenue exceeded Wall Street's expectations, and the value of Zhiwen group is waiting to return
- 关于马格齿轮泵的应用领域都有哪些?总结一下
- puppeteer入门之 Browser 类
- Wsarecv: an existing connection was forcefully closed by the remote host
- Internet of things security in the era of remote work
- MySQL基础篇常用约束总结下篇
- Introduction to ZigBee module wireless transmission star topology networking structure
猜你喜欢

rpc的正确打开方式|读懂Go原生net/rpc包

Tree topology networking structure of ZigBee module communication protocol

Can station B make money?

ZigBee模块通信协议的树形拓扑组网结构

Technology cloud report: privacy computing under the wave of Web3.0

Cisp-pte XSS Foundation

选择DC-DC开关电源控制器的实战过程

EMG执行器的作用和功能有哪些

深夜小酌,50道经典SQL题,真香~

What hydraulic oil is used for Denison hydraulic pump? What are the requirements
随机推荐
Habitable planet
New feature of ES6 - arrow function
转载:LinearLayout+Fragment实现下导航栏效果
Initial deployment of Servlet
Browserfetcher class for getting started with puppeter
MD5 learning
EMG执行器的作用和功能有哪些
Circuit board made of real gold -- golden finger
动态渲染数据和轮播图
Beginning simple blog emlog theme template V3
深夜小酌,50道经典SQL题,真香~
mysql基础学习笔记03
穆格测试控制器的作用和应用场合有哪些
Mysql-- index
[Bert]: Calculation of last ave state when training tasks with similar Bert semantics
基于SSM+Vue+OSS的“依伴汉服”商城设计与开发(含源码+论文+ppt+数据库)
VK2C22A/B抗干扰系列电表,水表段码LCD液晶驱动芯片资料(可定制DICE/COG)
批量对数据添加噪声并生成新命名标注文件
远程监控项目离线日志说明书
[torch]: parallel training and can dynamically set the batch size of the first GPU