You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
489 B
26 lines
489 B
11 months ago
|
using UnityEngine;
|
||
|
using UnityEngine.EventSystems;
|
||
|
using UnityEngine.UI;
|
||
|
|
||
|
public class MiniMapControl : MonoBehaviour
|
||
|
{
|
||
|
public Camera MiniMapCamera;
|
||
|
public Image Compass;
|
||
|
|
||
|
public void Plus()
|
||
|
{
|
||
|
if (MiniMapCamera.orthographicSize >= 1)
|
||
|
{
|
||
|
MiniMapCamera.orthographicSize--;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void minus()
|
||
|
{
|
||
|
if (MiniMapCamera.orthographicSize <= 150)
|
||
|
{
|
||
|
MiniMapCamera.orthographicSize++;
|
||
|
}
|
||
|
}
|
||
|
}
|