コード例 #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>();
    }
コード例 #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>();
        }