Question: Is the RAINAction Constructor Required? When I create a Custom Action, the RAIN template looks like this:
[RAINAction]
public class BlahBlah : RAINAction
{
public override void Start(AI ai)
{
base.Start(ai)
}
public override .... etc etc.....
}
However, many examples show a constructor:
[RAINAction]
public class BlahBlah : RAINAction
{
public BlahBlah()
{
//WHY IS THIS REQUIRED?
actionName = "BlahBlah;
}
public override void Start(AI ai)
{
base.Start(ai)
}
public override .... etc etc.....
}
Why do we need to define a constructor? What is the purpose of setting the inherited property actionName?
Thanks!
-
This topic was modified 5 months, 2 weeks ago by RAINLover.
-
This topic was modified 5 months, 2 weeks ago by RAINLover.