Exemplo n.º 1
0
	// Use this for initialization
	void Start () {
        radar = GetComponent<dfRadarMain>();
        RC = this;
        myControl = GetComponent<dfControl>();
        myControl.IsVisible = false;
        tween1 = GetComponent<dfTweenFloat>();
	}
Exemplo n.º 2
0
    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 );
    }
Exemplo n.º 3
0
    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);
    }