void Awake() { invisibleLayer = LayerMask.NameToLayer ("Invisible"); if (!visible) SetVisible (false); master = FindObjectOfType<ObjectLayerMaster> (); master.AddObject (this); }
public void Set(string layerName, ObjectLayerMaster master) { layerText.text = layerName; this.layerName = layerName; this.master = master; }