Search
Get Started
C
C#
•
3y ago
𝔍𝔒𝔖ℌ
❔ Need help with an error
So I
'm working on a monogame project and I
'm confused about with it
's not accepting
this
this
as a unit
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,010
Members
View on Discord
Was this page helpful?
Yes
No
this
this
T
TheBoxyBear
•
1/22/23, 1:03 AM
What is the constructor for Fireball you
're trying to call
?
�
𝔍𝔒𝔖ℌ
OP
•
1/22/23, 1:06 AM
here
's image of my fireball constructor as well as it
's parent class
�
𝔍𝔒𝔖ℌ
OP
•
1/22/23, 1:07 AM
sorry for the lack of comments it
's a bad habit i need to break
A
Angius
•
1/22/23, 1:08 AM
Well
, the method seems to be taking a
Unit
Unit
there
A
Angius
•
1/22/23, 1:08 AM
But
this
this
refers to the current instance of
MainChara
MainChara
A
Angius
•
1/22/23, 1:08 AM
Square peg does not fit a round hole
�
𝔍𝔒𝔖ℌ
OP
•
1/22/23, 1:09 AM
that does make alot of sense
A
Accord
•
1/23/23, 1:17 AM
Was this issue resolved
? If so
, run
/close
/close
otherwise I will mark this as stale and this post will be archived until there is new activity
.
Unit
Unit
MainChara
MainChara