Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SkinPackage"/> class.
 /// </summary>
 /// <param name="package">Package.</param>
 public SkinPackage(SkinPackage package)
 {
     this.tangibleSkin      = new Material(package.GetTangibleSkin());
     this.focusSkin         = new Material(package.GetFocusSkin());
     this.intangibleSkin    = new Material(package.GetIntangibleSkin());
     this.unliftableSkin    = new Material(package.GetUnliftableSkin());
     this.highlightColor    = package.GetHighlightColor();
     this.outlineStartColor = package.GetOutlineStartColor();
     this.outlineEndColor   = package.GetOutlineEndColor();
 }
Example #2
0
    /// <summary>
    /// Initialize the ghost block's materials/skins.
    /// </summary>
    public void InitializeBlockSkins()
    {
        SkinPackage skinPackage = GameController_v7.Instance.GetBlockManager().TakeHollowBlockSkin();

        this.tangibleMaterial   = skinPackage.GetTangibleSkin();
        this.intangibleMaterial = skinPackage.GetIntangibleSkin();

        // On purpose
        this.unliftableMaterial     = skinPackage.GetTangibleSkin();
        this.unliftableOutlineColor = skinPackage.GetOutlineStartColor();
        //this.unliftableMaterial = skinPackage.GetUnliftableSkin ();

        this.focusMaterial     = skinPackage.GetFocusSkin();
        this.highlightColor    = skinPackage.GetHighlightColor();
        this.outlineStartColor = skinPackage.GetOutlineStartColor();
        this.outlineEndColor   = skinPackage.GetOutlineEndColor();
    }