Esempio n. 1
0
    private void Awake()
    {
        var fadersGo = new GameObject("Tools Fader");
        fadersGo.transform.SetParent(transform, worldPositionStays: false);
        toolsFader = fadersGo.AddComponent<ToolsFader>();

        toolsFader.fadeTargets = GetComponentsInChildren<IFadeTarget>();
    }
Esempio n. 2
0
        private void Awake()
        {
            var fadersGo = new GameObject("Tools Fader");

            fadersGo.transform.SetParent(transform, worldPositionStays: false);
            toolsFader = fadersGo.AddComponent <ToolsFader>();

            toolsFader.fadeTargets = GetComponentsInChildren <IFadeTarget>();
        }