コード例 #1
0
    private void AffectMask(MainCharacter mainCharacter)
    {
        this.Visible    = false;
        this.IsAffected = true;

        this.GetParent().RemoveChild(this);
        mainCharacter.AddChild(this);
        mainCharacter.availableMasks.Add(this);

        this.Position = new Vector2();

        this.GetNode <Sprite>("Sprite").Scale = mainCharacter.GetNode <AnimatedSprite>("AnimatedSprite").Scale;
    }