private void OnEnable() { Radar.RegisterRadarObject(gameObject, _ico); }
void Start() { map = GetComponentInParent <Radar>(); rect = GetComponent <RectTransform>(); _playerPos = GameObject.FindGameObjectWithTag("Player").transform; }
private void OnDisable() { Radar.RemoveRadarObject(gameObject); }