void Start () { beam = GetComponent<EzBeam>(); if( null == beam ) { Destroy(this); return; } CreateMesh(); }
void Start () { beam = GetComponent<EzBeam>(); if( null == beam ) { if (Application.isPlaying) { Destroy(this); } else { DestroyImmediate(this); } return; } CreateLineRenderer(); }
// Use this for initialization void Start () { beam = GetComponentInChildren<EzBeam>(); }