private void Initialize() { if (backGround) { fObjectR = new FaderObjectsRec(backGround.gameObject); } if (guiPanel) { fObjectR.Add(new FaderObjectsRec(guiPanel.gameObject)); } initialised = true; }
public void Add(FaderObjectsRec fOb) { fOb.fObjects.ForEach((ob) => { fObjects.Add(ob); }); fOb.parents.ForEach((pOb) => { parents.Add(pOb); }); }