Please explain what you mean - and what you're trying to do - as clearly as you can. I'm here to help, but I'm really having trouble with what you mean. Any context you can give would help me answer you better.
Are you referring to code that goes within a custom Action? Action scripts cannot contain yields, as they are made from ScriptableObjects. Instead, the Run function must return the time that the system must wait before re-running it to see if it's finished. The included ActionTemplate.cs has some comments that may help.
Comments
You can do this by calling:
AC.KickStarter.TurnOffAC ();
and:
AC.KickStarter.TurnOnAC ();
...
Are you referring to code that goes within a custom Action? Action scripts cannot contain yields, as they are made from ScriptableObjects. Instead, the Run function must return the time that the system must wait before re-running it to see if it's finished. The included ActionTemplate.cs has some comments that may help.