コード例 #1
0
    protected override void Start()
    {
        base.Start();

        if (tccps == null)
        {
            if (gameObject.GetComponentInChildren <TCCommonParametersSetter>() != null)
            {
                tccps = gameObject.GetComponentInChildren <TCCommonParametersSetter>();
            }
        }

        if (NPS != null)
        {
            NPS.LoadAndInit();
        }

        if (Atmosphere != null)
        {
            Atmosphere.InitPlanetoidUniforms(this);
        }

        if (Cloudsphere != null)
        {
            Cloudsphere.InitUniforms(this);
        }

        if (Ring != null)
        {
            Ring.InitUniforms(this);
        }

        ReSetupQuads(); //NOTE : Force resetup on start.
    }