private void Awake() { var fadersGo = new GameObject("Tools Fader"); fadersGo.transform.SetParent(transform, worldPositionStays: false); toolsFader = fadersGo.AddComponent<ToolsFader>(); toolsFader.fadeTargets = GetComponentsInChildren<IFadeTarget>(); }
private void Awake() { var fadersGo = new GameObject("Tools Fader"); fadersGo.transform.SetParent(transform, worldPositionStays: false); toolsFader = fadersGo.AddComponent <ToolsFader>(); toolsFader.fadeTargets = GetComponentsInChildren <IFadeTarget>(); }