Beispiel #1
0
    void Start ()
    {
        beam = GetComponent<EzBeam>();
        if( null == beam )
        {
            Destroy(this);
            return;
        }

        CreateMesh();
    }
Beispiel #2
0
    void Start ()
    {
        beam = GetComponent<EzBeam>();
        if( null == beam )
        {
            if (Application.isPlaying)
            {
                Destroy(this);
            }
            else
            {
                DestroyImmediate(this);
            }
            return;
        }

        CreateLineRenderer();
    }
Beispiel #3
0
 // Use this for initialization
 void Start ()
 {
     beam = GetComponentInChildren<EzBeam>();
 }