|
Unity is having trouble with one script, both of these seem to be doing the same thing, but I'm not sure which one needs to go. The debug command cannot exist is a struct. Which one needs to stay and why? Thanks!
(comments are locked)
|
|
public ModifyingAttribute(...) is a constructor and needs to be declared and implemented inside the struct scope. I don't understand... Please explain and forgive my newbieness.
Mar 09 '12 at 04:44 PM
Gilead7
That's what you need to do :
public struct ModifyingAttribute
{
public Attribute attribute;
public float ratio;
public ModifyingAttribute(){}
public ModifyingAttribute(Attribute att, float rat)
{
Debug.Log("Modifying Attribute Created.");
attribute=att;
ratio= rat;
}
}
Mar 09 '12 at 05:22 PM
Berenger
(comments are locked)
|
