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)
{