kiltec

CreateRadarObject.cs

Apr 8th, 2022
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3.  
  4. public class CreateRadarObject : MonoBehaviour
  5. {
  6.     public Image image;
  7.  
  8.     private void Start()
  9.     {
  10.         Radar.RegisterRadarObject(this.gameObject, image);
  11.     }
  12.  
  13.     private void OnDestroy()
  14.     {
  15.         Radar.RemoveRadarObject(this.gameObject);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment