Example #1
0
    protected override void Awake()
    {
        base.Awake();

        if (CapeMaterial != null)
        {
            var renderers = GetComponentsInChildren <MeshRenderer>();
            foreach (var renderer in renderers)
            {
                MaterialUtils.SubstituteMaterial(renderer, "KnightCape", CapeMaterial);
            }
        }

        VerticalLayer = InitialVerticalLayer;

        SpawnCapePieces();
    }