Skip to content

Lecture14のエラー #18

@Bunny63857

Description

@Bunny63857

Laserクラスの以下の部分がエラーを吐く
Color = new asd.Color(255, 255, 255, startAlpha);
DrawLineAdditionally(GetGlobalPosition(), destPos, new asd.Color(120, 160, 255, startAlpha), 5, asd.AlphaBlendMode.Add, 0);
startAlphaが暗黙的に型変換されないことが原因。
(int)startAlphaと明示することによって解決

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions