// Use this for initialization void Start () { radar = GetComponent<dfRadarMain>(); RC = this; myControl = GetComponent<dfControl>(); myControl.IsVisible = false; tween1 = GetComponent<dfTweenFloat>(); }
public void OnEnable() { if( string.IsNullOrEmpty( markerType ) ) return; if( radar == null ) { radar = FindObjectOfType( typeof( dfRadarMain ) ) as dfRadarMain; if( radar == null ) { Debug.LogWarning( "No radar found" ); return; } } radar.AddMarker( this ); }
public void OnEnable() { if (string.IsNullOrEmpty(markerType)) { return; } if (radar == null) { radar = FindObjectOfType(typeof(dfRadarMain)) as dfRadarMain; if (radar == null) { Debug.LogWarning("No radar found"); return; } } radar.AddMarker(this); }