EngediKimHyeYoung / Unity

0 stars 0 forks source link

UI 클릭통한 카메라 이동 - UIButton.cs #21

Open EngediKimHyeYoung opened 1 year ago

EngediKimHyeYoung commented 1 year ago

using System.Collections; using System.Collections.Generic; using UnityEngine;

public class UIButton : MonoBehaviour { public MainCamera myCamera; public int target; public void UIButtonMove(){ myCamera.CameraMove(target); } }