Hello,
How can I do begin a Cutscene and ActionList with script (I wish I would press a Unity Ui button to begin a Cutscene or a ActionList) please ?
I found theses codes :
- AC.KickStarter.stateHandler.StartCutscene ();
- virtual AC.ActionList.Interact()
Is it these? But I don't understand how to use them -_- Sorry.
For example, I want begin a Cutscene named "Mycutscene" and a ActionList named "Myactionlist", what must write in my code ?
Thanks,
Sorry for my English (I'm French).
Comments
public AC.Cutsene myCutscene;
public AC.ActionListAsset myActionListAsset;
public void RunCutscene ()
{
myCutscene.Interact ();
}
public void RunActionListAsset ()
{
myActionListAsset.Interact ();
}
Also be aware that if you link your UI to the Menu Manager (see the "Menus overview" and "Unity UI menus" chapters), you can have a UI Button run an ActionList without the need for code.